UNPKG

468 BTypeScriptView Raw
1/// <reference types="bn.js" />
2import type { BN } from '@polkadot/util';
3import type { Prefix } from './types.js';
4/**
5 * @name encodeDerivedAddress
6 * @summary Creates a derived address as used in Substrate utility.
7 * @description
8 * Creates a Substrate derived address based on the input address/publicKey and the index supplied.
9 */
10export declare function encodeDerivedAddress(who: string | Uint8Array, index: bigint | BN | number, ss58Format?: Prefix): string;