0.2.18 • Published 4 years ago

@sonicxchain/sonicxscan-cli v0.2.18

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
4 years ago

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,
});