1.4.0 • Published 3 years ago
koinos-rpc v1.4.0
koinos-rpc
Typescript library to communicate with Koinos API via RPC
How to use
import { Client } from 'koinos-rpc';
void (async () => {
const client = new Client(['https://api.koinosblocks.com']);
const { head_topology } = await client.chain.getHeadInfo();
console.log(JSON.stringify(head_topology, null, 2));
})();Visit examples directory for more examples.
Tests
There are sets of unit and integration tests
Install dependencies:
yarn installRun unit tests:
yarn run test:unitRun integration tests:
yarn run test:integrationLicence
MIT