import { account } from "https://deno.land/x/polkadot@0.2.12/api-derive/balances/account.ts";
Examples
const ALICE = 'F7Hs';
api.derive.balances.all(ALICE, ({ accountId, lockedBalance }) => {
console.log(`The account ${accountId} has a locked balance ${lockedBalance} units.`);
});
Parameters
api: DeriveApi
Returns
(address: ) => Observable<DeriveBalancesAccount>
An object containing the results of various balance queries