@dartess/multicoin-address-validator
Version:
Multicoin address validator for Bitcoin and other Altcoins ported to TypeScript.
14 lines (13 loc) • 636 B
TypeScript
import { ExtractNetworkType, OptsNetworkTypeOptional } from '../types';
declare type UsdtCurrency = typeof import('../currencies/usdt').usdtCurrency;
declare type Currency = UsdtCurrency;
declare type CurrencyNetworkType = ExtractNetworkType<Currency>;
declare type Opts = OptsNetworkTypeOptional<CurrencyNetworkType> & {
chainType?: 'erc20' | 'omni';
};
declare const USDTValidator: {
isValidAddress(address: string, currency: Currency, opts?: Opts | undefined): boolean;
};
declare type ValidatorParams = Parameters<typeof USDTValidator.isValidAddress>;
export { USDTValidator };
export type { ValidatorParams };