1.4.0 • Published 1 year ago

koinos-rpc v1.4.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 year ago

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 install

Run unit tests:

yarn run test:unit

Run integration tests:

yarn run test:integration

Licence

MIT

1.4.0

1 year ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago