UNPKG

360 BTypeScriptView Raw
1import type { HexString } from '@polkadot/util/types';
2import type { Prefix } from './types';
3/**
4 * @name checkAddress
5 * @summary Validates an ss58 address.
6 * @description
7 * From the provided input, validate that the address is a valid input.
8 */
9export declare function checkAddress(address: HexString | string, prefix: Prefix): [boolean, string | null];