Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/polkadot/api-derive/balances/index.ts>all

Package publishing for deno.land/x/polkadot
Latest
function all
Re-export
import { all } from "https://deno.land/x/polkadot@0.2.45/api-derive/balances/index.ts";

Examples

const ALICE = 'F7Hs';

api.derive.balances.all(ALICE, ({ accountId, lockedBalance }) => {
  console.log(`The account ${accountId} has a locked balance ${lockedBalance} units.`);
});

Parameters

instanceId: string
  • An accounts Id in different formats.

Returns

(address: AccountId | string) => Observable<DeriveBalancesAll>

An object containing the results of various balance queries