UNPKG

chaingate

Version:

Multi-chain cryptocurrency SDK for TypeScript — unified API for Bitcoin, Ethereum, Litecoin, Dogecoin, Bitcoin Cash, Polygon, Arbitrum, and any EVM-compatible chain. Create wallets, query balances, send transactions, and manage tokens and NFTs across UTXO

37 lines (36 loc) 1.41 kB
/** Thrown when a mnemonic phrase is invalid. */ export declare class InvalidPhraseError extends Error { constructor(message: string); } /** Thrown when a private key has an invalid format. */ export declare class InvalidPrivateKeyError extends Error { constructor(message: string); } /** Thrown when a seed value is invalid. */ export declare class InvalidSeedError extends Error { constructor(message: string); } /** Thrown when a public key has an invalid format. */ export declare class InvalidPublicKeyError extends Error { constructor(message: string); } /** Thrown when the user cancels the password prompt during decryption. */ export declare class DecryptionCancelledError extends Error { constructor(); } /** Thrown when calling {@link Secret.getEncryptedExport} on a non-encrypted secret. */ export declare class NotEncryptedError extends Error { constructor(); } /** Thrown when attempting to encrypt a secret that is already encrypted. */ export declare class AlreadyEncryptedError extends Error { constructor(); } /** Thrown when accessing secret data while encrypted. Use {@link Secret.withDecrypted} instead. */ export declare class EncryptedAccessError extends Error { constructor(); } /** Thrown when HD key derivation produces a null value for a required property. */ export declare class HDKeyNullError extends Error { constructor(property: string); }