Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 438 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 438 Bytes

@encointer/node-api

Encointer Node API definitions

Installation

yarn add @encointer/node-api @encointer/worker-api

Usage

import { ApiPromise } from '@polkadot/api';
import { WsProvider} from '@polkadot/rpc-provider';
import { options } from '@encointer/node-api';

// Connect to Encointer Cantillon
const api = await ApiPromise({
  options(),
  provider: new WsProvider('wss://cantillon.encointer.org')
});