ArweaveDB
ArweaveDB is used to write and read the arweave blockchain database.
Arweave uses an unique way of storing it's data, and this package can be used on servers or any other application that interacts with the blockchain.
ArweaveDB uses fs
to write files and fast-glob
to find blocks by height or by ID.
Installation
npm install arweavedb --save
Initialisation
; const arweaveDB = __dirname;
Getting started
And enjoy
// Add a blockawait arweaveDB; // Add a transactionawait arweaveDB; // Get a block by IDconst block = await arweaveDB; // Get a block by heightconst block = await arweaveDB;