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
22 lines (21 loc) • 653 B
TypeScript
import { Secret, EncryptedState } from '../../../Secret';
/**
* A binary seed for HD key derivation. Accepts hex strings, raw bytes, or encrypted state.
*
* @example
* ```ts
* const seed = new Seed('abcdef0123456789...');
* const seed = new Seed(seedBytes);
* ```
*/
export declare class Seed extends Secret {
/**
* @param source - Hex string, `Uint8Array`, or {@link EncryptedState}.
* @throws {@link InvalidSeedError} if invalid.
*/
constructor(source: string | Uint8Array | EncryptedState);
/** The raw seed bytes. */
get raw(): Uint8Array;
/** The seed as a hex-encoded string. */
get hex(): string;
}