Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 745 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 745 Bytes

@rei-network/database

NPM Version License

The low level database implementation, based on @ehtereumjs/blockchain. Added logic about Receipt, Transaction and BloomBits.

INSTALL

npm install @rei-network/database

USAGE

const db = new Database(levelDB, common);
console.log((await db.getTransaction(txHash)).toJSON());
console.log((await db.getReceipt(txHash)).toRPCJson());
console.log((await db.getBloomBits(bit, section, hash)).toString("hex"));

License

GNU General Public License v3.0