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

0.0.4 • Public • Published

@gxchain2/rpc

NPM Version License

Rpc call interface of websocket and http.

  • debug: Debug api for tracing blocks and transactions, includes: debug_traceBlock, debug_traceTransaction ...etc

    warning: Debug api is very dangerous, public nodes shouldn't open

  • eth ETH api for getting information from blockchain, includes: eth_coinbase, eth_gasPrice ...etc

  • net ETH api for getting network state

  • txpool Txpool api for getting information from txpool

  • web3 Web3 api

INSTALL

npm install @gxchain2/rpc

USAGE

const server = new RpcServer(34456, "127.0.0.1", "eth,net,txpool,web3", node);
await server.start();
await server.abort();

License

GNU General Public License v3.0

/@gxchain2/rpc/

    Package Sidebar

    Install

    npm i @gxchain2/rpc

    Weekly Downloads

    1

    Version

    0.0.4

    License

    GPL-3.0-or-later

    Unpacked Size

    169 kB

    Total Files

    62

    Last publish

    Collaborators

    • lanhaoxiang
    • samlior