UNPKG

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