UNPKG

caravan-x

Version:

A terminal-based utility for managing Caravan multisig wallets in regtest mode. This tool simplifies development and testing with Caravan by providing an easy-to-use interface

45 lines (44 loc) 1.17 kB
import { BitcoinService } from "../core/bitcoin"; /** * Wallet commands for managing Bitcoin wallets */ export declare class WalletCommands { private readonly bitcoinService; constructor(bitcoinService: BitcoinService); /** * Add a back option to selection choices */ private addBackOption; /** * Check if a value is the back option */ private isBackOption; /** * Custom text input with back option (using 'q' to go back) */ private inputWithBack; /** * Handle spinner errors and return false to indicate operation should be canceled */ private handleSpinnerError; /** * List all wallets on the node */ listWallets(): Promise<string[] | false>; /** * Create a new wallet */ createWallet(): Promise<string | false | null>; /** * Show wallet details */ showWalletDetails(walletName?: string): Promise<any | false>; /** * Fund a wallet with new coins (using mining) */ fundWallet(walletName?: string): Promise<any | false>; /** * Send funds between wallets */ sendFunds(): Promise<any | false>; }