export interface BtcApis { getBtcBlockchainInfo(): Promise; getBtcBlockByHash(blockHash: string): Promise; getBtcBlockHeaderByHash(blockHash: string): Promise; getBtcBlockHashByHeight(blockHeight: number): Promise; getBtcBlockTransactionIdsByHash(blockHash: number): Promise; getBtcRecommendedFeeRates(): Promise; getBtcBalance(address: string, params?: BtcApiBalanceParams): Promise; getBtcUtxos(address: string, params?: BtcApiUtxoParams): Promise; getBtcTransactions(address: string, params?: BtcApiTransactionParams): Promise; getBtcTransaction(txId: string): Promise; sendBtcTransaction(txHex: string): Promise; } export interface BtcApiBlockchainInfo { chain: string; blocks: number; bestblockhash: string; difficulty: number; mediantime: number; } export interface BtcApiBlock { id: string; height: number; version: number; timestamp: number; tx_count: number; size: number; weight: number; merkle_root: string; previousblockhash: string; mediantime: number; nonce: number; bits: number; difficulty: number; } export interface BtcApiBlockHash { hash: string; } export interface BtcApiBlockHeader { header: string; } export interface BtcApiBlockTransactionIds { txids: string[]; } export interface BtcApiRecommendedFeeRates { fastestFee: number; halfHourFee: number; hourFee: number; economyFee: number; minimumFee: number; } export interface BtcApiBalanceParams { min_satoshi?: number; no_cache?: boolean; } export interface BtcApiBalance { address: string; // @deprecated Use available_satoshi instead satoshi: number; total_satoshi: number; available_satoshi: number; pending_satoshi: number; rgbpp_satoshi: number; dust_satoshi: number; utxo_count: number; } export interface BtcApiUtxoParams { only_non_rgbpp_utxos?: boolean; only_confirmed?: boolean; min_satoshi?: number; no_cache?: boolean; } export interface BtcApiUtxo { txid: string; vout: number; value: number; status: { confirmed: boolean; block_height: number; block_hash: string; block_time: number; }; } export interface OfflineBtcUtxo extends BtcApiUtxo { address: string; nonRgbpp: boolean; } export interface BtcApiSentTransaction { txid: string; } export interface BtcApiTransactionParams { after_txid?: string; } export interface BtcApiTransaction { txid: string; version: number; locktime: number; vin: { txid: string; vout: number; prevout: { scriptpubkey: string; scriptpubkey_asm: string; scriptpubkey_type: string; scriptpubkey_address: string; value: number; }; scriptsig: string; scriptsig_asm: string; witness: string[]; is_coinbase: boolean; sequence: number; }[]; vout: { scriptpubkey: string; scriptpubkey_asm: string; scriptpubkey_type: string; scriptpubkey_address: string; value: number; }[]; weight: number; size: number; fee: number; status: { confirmed: boolean; block_height: number; block_hash: string; block_time: number; }; }