@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
10 lines (9 loc) • 363 B
TypeScript
import type { HexString } from '@polkadot/util/types';
import type { Prefix } from './types.js';
/**
* @name checkAddress
* @summary Validates an ss58 address.
* @description
* From the provided input, validate that the address is a valid input.
*/
export declare function checkAddress(address: HexString | string, prefix: Prefix): [boolean, string | null];