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

24 lines (23 loc) 792 B
import { Seed } from './Seed'; import { HDWallet, HDKeySource, HDWalletRestoreData } from '../HDWallet'; import type { WalletSerialized } from '../../../WalletSerialized'; /** * HD wallet created from a binary seed. * * @example * ```ts * const wallet = new SeedWallet(new Seed(hexSeedString)); * const key = await wallet.derive("m/44'/60'/0'/0/0"); * ``` */ export declare class SeedWallet extends HDWallet<Seed> { readonly walletType: "seed"; /** @param seed - The seed. */ constructor(seed: Seed, restoreData?: HDWalletRestoreData); /** @internal */ protected getKeySource(): HDKeySource; /** Returns the {@link Seed}. Prompts for password if encrypted. */ getSeed(): Promise<Seed>; /** @internal */ protected doSerialize(): WalletSerialized; }