@gxchain2/database
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@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

/@gxchain2/database/

    Package Sidebar

    Install

    npm i @gxchain2/database

    Weekly Downloads

    3

    Version

    0.0.2

    License

    GPL-3.0-or-later

    Unpacked Size

    65.5 kB

    Total Files

    10

    Last publish

    Collaborators

    • lanhaoxiang
    • samlior