@webb-tools/api
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

@webb-tools/api

Contains necessary options and types to create a polkadot.js API instance

import {ApiPromise, WsProvider} from "@polkadot/api";

const wsProvider: wsProvider = WsProvider('ws://127.0.0.1:9944');

const options = options({
  provider: wsProvider
});

const apiPromise = ApiPromise.create(options);

Readme

Keywords

none

Package Sidebar

Install

npm i @webb-tools/api

Weekly Downloads

212

Version

0.1.8

License

Apache-2.0

Unpacked Size

15.4 kB

Total Files

5

Last publish

Collaborators

  • 1xstj
  • atelypham
  • salman01z
  • drewstone
  • shady-commonwealth
  • shekohex