Module

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

Package publishing for deno.land/x/polkadot
Go to Latest
function indexToId
import { indexToId } from "https://dotland.deno.dev/x/polkadot@0.2.38/api-derive/accounts/indexToId.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.