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 { Xpriv } from './Xpriv'; import { HDWallet, HDKeySource, HDWalletRestoreData } from '../HDWallet'; import type { WalletSerialized } from '../../../WalletSerialized'; /** * HD wallet created from an extended private key (xpriv). * * @example * ```ts * const wallet = new XprivWallet(new Xpriv('xprv9s21ZrQH143K...')); * const key = await wallet.derive("m/44'/60'/0'/0/0"); * ``` */ export declare class XprivWallet extends HDWallet<Xpriv> { readonly walletType: "xpriv"; /** @param xpriv - The extended private key. */ constructor(xpriv: Xpriv, restoreData?: HDWalletRestoreData); /** @internal */ protected getKeySource(): HDKeySource; /** Returns the {@link Xpriv}. Prompts for password if encrypted. */ getXpriv(): Promise<Xpriv>; /** @internal */ protected doSerialize(): WalletSerialized; }