@gxchain2/database
v0.0.2
Published
[](https://www.npmjs.org/package/@gxchain2/database) 
Downloads
5
Readme
@gxchain2/database
The low level database implementation, based on @ehtereumjs/blockchain. Added logic about Receipt, Transaction and BloomBits.
INSTALL
npm install @gxchain2/databaseUSAGE
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"));