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) 847 B
import { Phrase } from './Phrase'; import { HDWallet, HDKeySource, HDWalletRestoreData } from '../HDWallet'; import type { WalletSerialized } from '../../../WalletSerialized'; /** * HD wallet created from a mnemonic phrase. * * @example * ```ts * const wallet = new PhraseWallet(new Phrase('abandon abandon ... about')); * const key = await wallet.derive("m/44'/60'/0'/0/0"); * ``` */ export declare class PhraseWallet extends HDWallet<Phrase> { readonly walletType: "phrase"; /** @param phrase - The mnemonic phrase. */ constructor(phrase: Phrase, restoreData?: HDWalletRestoreData); /** @internal */ protected getKeySource(): HDKeySource; /** Returns the {@link Phrase}. Prompts for password if encrypted. */ getPhrase(): Promise<Phrase>; /** @internal */ protected doSerialize(): WalletSerialized; }