@dartess/multicoin-address-validator
Version:
Multicoin address validator for Bitcoin and other Altcoins ported to TypeScript.
11 lines (10 loc) • 530 B
TypeScript
import { OptsNetworkTypeOptional } from '../types';
declare type AdaCurrency = typeof import('../currencies/ada').adaCurrency;
declare type Currency = AdaCurrency;
declare type CurrencyNetworkType = keyof AdaCurrency['bech32Hrp'];
declare const ADAValidator: {
isValidAddress(address: string, currency: Currency, opts?: OptsNetworkTypeOptional<CurrencyNetworkType>): boolean;
};
declare type ValidatorParams = Parameters<typeof ADAValidator.isValidAddress>;
export { ADAValidator };
export type { ValidatorParams };