Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

Package publishing for deno.land/x/polkadot
Latest
function idAndIndex
import { idAndIndex } from "https://deno.land/x/polkadot@0.2.45/api-derive/accounts/index.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>