import { Network, TxHash } from '@d11k-ts/client' export type AddressParams = { sochainUrl: string network: Network address: string startingFromTxId?: string } export type TxHashParams = { sochainUrl: string network: Network hash: TxHash } export type TxBroadcastParams = { sochainUrl: string network: Network txHex: string } export interface SochainResponse { data: T status: string } export interface TxIO { input_no: number value: string address: string type: string script: string } export interface Transaction { network: string txid: string blockhash: string confirmations: number time: number tx_hex: string inputs: TxIO[] outputs: TxIO[] } export type BtcAddressUTXO = { txid: string output_no: number script_asm: string script_hex: string value: string confirmations: number time: number } export type BtcAddressTxDTO = { txid: string block_no: number confirmations: number time: number req_sigs: number script_asm: string script_hex: string } export type BtcAddressDTO = { network: string address: string balance: string received_value: string pending_value: string total_txs: number txs: BtcAddressTxDTO[] } export type BtcGetBalanceDTO = { network: string address: string confirmed_balance: string unconfirmed_balance: string } export type BtcUnspentTxsDTO = { network: string address: string txs: BtcAddressUTXO[] } export type BtcBroadcastTransfer = { network: string txid: string } export type TxConfirmedStatus = { network: string txid: string confirmations: number is_confirmed: boolean } export type ScanUTXOParam = { sochainUrl: string haskoinUrl: string network: Network address: string confirmedOnly?: boolean withTxHex?: boolean }