@gxchain2/rpc
v0.0.4
Published
[![NPM Version](https://img.shields.io/npm/v/@gxchain2/rpc)](https://www.npmjs.org/package/@gxchain2/rpc) ![License](https://img.shields.io/npm/l/@gxchain2/rpc)
Downloads
17
Readme
@gxchain2/rpc
Rpc call interface of websocket and http.
debug
: Debug api for tracing blocks and transactions, includes:debug_traceBlock
,debug_traceTransaction
...etcwarning: Debug api is very dangerous, public nodes shouldn't open
eth
ETH api for getting information from blockchain, includes:eth_coinbase
,eth_gasPrice
...etcnet
ETH api for getting network statetxpool
Txpool api for getting information from txpoolweb3
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();