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

3.0.2 • Public • Published

@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

/@rei-network/database/

    Package Sidebar

    Install

    npm i @rei-network/database

    Weekly Downloads

    1

    Version

    3.0.2

    License

    GPL-3.0-or-later

    Unpacked Size

    151 kB

    Total Files

    42

    Last publish

    Collaborators

    • bijianing97
    • samlior_
    • lanhaoxiang