How to use @polkadot/api-derive - 1 common examples

To help you get started, we’ve selected a few @polkadot/api-derive 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 / api / packages / api / src / base / Decorate.ts View on Github external
protected decorateDeriveRx (decorateMethod: DecorateMethod): DeriveAllSections<'rxjs', ExactDerive> {
    // Pull in derive from api-derive
    const derive = decorateDerive(this._rx as ApiInterfaceRx, this._options.derives);

    return decorateSections<'rxjs', ExactDerive>(derive, decorateMethod);
  }

@polkadot/api-derive

Common functions used across Polkadot, derived from RPC calls and storage queries.

Apache-2.0
Latest version published 9 days ago

Package Health Score

90 / 100
Full package analysis

Popular @polkadot/api-derive functions

Similar packages