How to use the @polkadot/rpc-provider/coder function in @polkadot/rpc-provider

To help you get started, we’ve selected a few @polkadot/rpc-provider 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 / WasmProviderLite.ts View on Github external
public constructor(client: any) {
    this._eventemitter = new EventEmitter();
    this.coder = new Coder();
    this.client = client;

    // Give subscribers time to subscribe
    setTimeout(() => {
      this._isConnected = true;
      this.emit('connected');
    });
  }

@polkadot/rpc-provider

Transport providers for the API

Apache-2.0
Latest version published 5 days ago

Package Health Score

90 / 100
Full package analysis

Similar packages