UNPKG

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