CITA-Web3-Plugin
Promise based CITA RPC toolkit.
Features
- Supports the Promise API
Installing
$ yarn add cita-web3-plugin
Example
const SERVER = 'localhost:1337' const CITA = /** * @function netPeerCount * @description request net peer count * @param null * @returns */CITA /** * @function getBlockByNumber * @description request block by block number * @param * @param * @returns */CITA /** * @function getBlockByHash * @description request block by block hash * @param * @param * @returns */CITA