zksync-cli
Version:
CLI tool that simplifies the process of developing applications and interacting with the ZKsync network
6 lines (5 loc) • 476 B
TypeScript
export declare const isDecimalAmount: (amount: string, decimals?: number) => true | "Incorrect amount";
export declare const isAddress: (address: string) => boolean | "Incorrect address";
export declare const isTransactionHash: (s: string) => true | "Incorrect transaction hash";
export declare const isPrivateKey: (hash: string) => true | "Incorrect private key";
export declare const isUrl: (url: string) => true | "URL must start with http:// or https://" | "Invalid URL";