How to use the @polkadot/api/promise function in @polkadot/api

To help you get started, we’ve selected a few @polkadot/api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github polkadot-js / apps / packages / react-api / src / Api.tsx View on Github external
private createApi (provider: ProviderInterface, signer: ApiSigner): ApiPromise {
    return new ApiPromise({
      provider,
      registry,
      signer,
      typesChain,
      typesSpec
    });
  }

@polkadot/api

Promise and RxJS wrappers around the Polkadot JS RPC

Apache-2.0
Latest version published 10 days ago

Package Health Score

92 / 100
Full package analysis

Similar packages