@sonicxchain/sonicxscan-cli
v0.2.18
Published
SonicXscan API Client
Downloads
16
Readme
How to use
Requirements
- Node v9.8.0
Running tests
> npm test
Usage
Install the package
> npm install @sonicxchain/sonicxscan-cli
Use the HTTP Client
import {Client} from "@sonicxchain/sonicxscan-cli";
const client = new Client();
let recentBlocks = await client.getBlocks({
sort: '-number',
limit: 10,
});