Skip to content

Latest commit

 

History

History

node-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

@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')
});