@gxchain2/database

[![NPM Version](https://img.shields.io/npm/v/@gxchain2/database)](https://www.npmjs.org/package/@gxchain2/database) ![License](https://img.shields.io/npm/l/@gxchain2/database)

Usage no npm install needed!

<script type="module">
  import gxchain2Database from 'https://cdn.skypack.dev/@gxchain2/database';
</script>

README

@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