import { UTXO, UTXOSet } from "./vault-balance.i"; /** * Diamond Hands Faucet API Response */ export interface DiamondHandsBalanceResponse { success: boolean; address: string; amount: number; error?: string; message?: string; } /** * Esplora API Balance Response */ export interface EsploraBalanceResponse { chain_stats?: { funded_txo_sum?: { value: number; }; spent_txo_sum?: { value: number; }; }; funded_txo_sum?: { value: number; } | number; spent_txo_sum?: { value: number; } | number; } /** * A single output in a Bitcoin transaction */ export interface TransactionOutput { index: number; scriptpubkey?: string; scriptpubkey_address?: string; value: number; } /** * Bitcoin Data Provider Interface * * Defines the contract for Bitcoin network data providers. */ export interface IBitcoinDataProvider { /** * Fetch all UTXOs for a Bitcoin address * @param address - Bitcoin address * @returns Array of UTXOs */ getUTXOs(address: string): Promise; /** * Get complete UTXO set with balance summary * @param address - Bitcoin address * @param minConfirmations - Minimum confirmations for "confirmed" status * @returns Complete UTXO set with balance breakdown */ getUTXOSet(address: string, minConfirmations?: number): Promise; /** * Get balance for a Bitcoin address (fast, no UTXO details) * @param address - Bitcoin address * @returns Balance in satoshis */ getBalance(address: string): Promise; /** * Get transaction with confirmation count * @param txid - Transaction ID to check * @returns Transaction with confirmation count, or null if not found */ getTransaction(txid: string): Promise<{ txid: string; confirmations: number; } | null>; /** * Get outputs (vouts) of a Bitcoin transaction * Used to canonicalize UTXO vout index when API may return wrong vout * @param txid - Transaction ID * @returns Array of transaction outputs, or null if not found */ getTransactionOutputs(txid: string): Promise; } //# sourceMappingURL=bitcoin-data-provider.i.d.ts.map