import { indexToId } from "https://deno.land/x/polkadot@0.2.12/api-derive/accounts/index.ts";
Examples
api.derive.accounts.indexToId('F7Hs', (accountId) => {
console.log(`The AccountId of F7Hs is ${accountId}`);
});
Parameters
api: DeriveApi
Returns
(accountIndex: AccountIndex | string) => Observable<AccountId | undefined>
Returns the corresponding AccountId.