Skip to main content
Deno 2 is finally here 🎉️
Learn more
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://deno.land/x/polkadot@0.2.16/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.