0.0.2 • Published 2 years ago

@gxchain2/database v0.0.2

Weekly downloads
1
License
GPL-3.0-or-later
Repository
-
Last release
2 years ago

@gxchain2/database

NPM Version License

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

INSTALL

npm install @gxchain2/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