multichain-address-validator
Version:
Multichain address validator for Bitcoin and other blockchains.
17 lines (16 loc) • 364 B
TypeScript
export type Address = string | {
address: string;
memo?: string;
};
export type Chain = string | {
chain: string;
networkType?: NetworkType;
};
export interface Validator {
isValidAddress(address: Address): boolean;
isValidMemo?(memo: string): boolean;
}
export declare enum NetworkType {
MainNet = "mainnet",
TestNet = "testnet"
}