UNPKG

insight-tcr

Version:

A blockchain explorer for Bitcore

105 lines (99 loc) 1.82 kB
interface CoinsApiResponse { inputs: ApiCoin[]; outputs: ApiCoin[]; } export interface ApiTx { address: string; chain: string; network: string; txid: string; blockHeight: number; blockHash: string; blockTime: Date; blockTimeNormalized: Date; coinbase: boolean; size: number; confirmations: number; locktime: number; inputs: ApiCoin[]; outputs: ApiCoin[]; mintTxid: string; mintHeight: number; spentTxid: string; spentHeight: number; value: number; version: number; } export interface ApiCoin { txid: string; mintTxid: string; coinbase: boolean; vout: number; address: string; script: { asm: string; type: string; }; spentTxid: string; mintHeight: number; spentHeight: number; value: number; } export interface AppCoin { txid: string; valueOut: number; value: number; spentTxid: string; mintTxid: string; mintHeight: number; spentHeight: number; } export interface AppInput { coinbase: boolean; sequence: number; n: number; txid: string; vout: number; scriptSig: { hex: string; asm: string; addresses: string[]; type: string; }; addr: string; valueSat: number; value: number; doubleSpentTxID: string; isConfirmed: boolean; confirmations: number; unconfirmedInput: string; } export interface AppOutput { value: number; n: number; scriptPubKey: { hex: string; asm: string; addresses: string[]; type: string; }; spentTxId: null; spentIndex: null; spentHeight: null; } export interface AppTx { txid: string; blockhash: string; version: number; locktime: number; isCoinBase: boolean; vin: any[]; vout: any[]; confirmations: number; time: number; valueOut: number; size: number; fee: number; blockheight: number; blocktime: number; }