Module

x/polkadot/api-derive/accounts/idAndIndex.ts>idAndIndex

Package publishing for deno.land/x/polkadot
Go to Latest
function idAndIndex
import { idAndIndex } from "https://dotland.deno.dev/x/polkadot@0.2.38/api-derive/accounts/idAndIndex.ts";

Examples

api.derive.accounts.idAndIndex('F7Hs', ([id, ix]) => {
  console.log(`AccountId #${id} with corresponding AccountIndex ${ix}`);
});

Parameters

instanceId: string
  • An accounts address in various formats.

Returns

(address?:
| Uint8Array
| string
| null
) => Observable<AccountIdAndIndex>