Skip to main content
Module

x/polkadot/api-derive/accounts/index.ts>indexToId

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

Examples

api.derive.accounts.indexToId('F7Hs', (accountId) => {
  console.log(`The AccountId of F7Hs is ${accountId}`);
});

Parameters

instanceId: string
  • An accounts index in different formats.

Returns

(accountIndex: AccountIndex | string) => Observable<AccountId | undefined>

Returns the corresponding AccountId.