Skip to main content
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://deno.land/x/polkadot@0.2.25/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>