trezor-address-validator
Version:
Multicoin address validator for Bitcoin and other altcoins.
13 lines (11 loc) • 584 B
TypeScript
declare module 'trezor-address-validator' {
export interface Currency {
name: string,
symbol: string,
}
export type AddressType = 'address' | 'p2pkh' | 'p2wpkh' | 'p2wsh' | 'p2sh' | 'p2tr' | 'pw-unknown';
export function validate(address: string, currencyNameOrSymbol?: string, networkType?: string): boolean;
export function getAddressType(address: string, currencyNameOrSymbol?: string, networkType?: string): AddressType | undefined;
export function getCurrencies(): Currency[];
export function findCurrency(symbol: string): Currency
}