import { bitgo } from '@bitgo/utxo-lib'; import { HttpClient, Response } from '../BaseHttpClient'; import { AddressApi, AddressInfo } from '../AddressApi'; import { OutputSpend, TransactionIO, UtxoApi } from '../UtxoApi'; import { TransactionStatus } from '../TransactionApi'; type Unspent = bitgo.Unspent; type BlockchairUnspent = { transaction_hash: string; index: number; recipient: string; value: number; block_id: number; script_hex: string; spending_transaction_hash: string; spending_index: number; address: string; }; type BlockchairTransaction = { transaction: { /** The block number it's included in. If the transaction is in the mempool, data.{:hash}ᵢ.transaction.block_id yields -1 */ block_id: number; /** * Like https://tc39.es/ecma262/#sec-date-time-string-format but with a space instead of 'T' * YYYY-MM-DD HH:mm:ss */ time: string; }; inputs: BlockchairUnspent[]; outputs: BlockchairUnspent[]; }; export declare class BlockchairApi implements AddressApi, UtxoApi { client: HttpClient; protected readonly apiToken?: string; static forCoin(coinName: string, params?: { apiToken?: string; httpClient?: HttpClient; }): BlockchairApi; constructor(client: HttpClient, apiToken?: string); get(path: string): Promise>; getAddressInfo(address: string): Promise; getUnspentsForAddresses(addr: string[]): Promise; getTransaction(txid: string): Promise; getTransactionStatus(txid: string): Promise; getTransactionInputs(txid: string): Promise; getTransactionIO(txid: string): Promise; getTransactionSpends(txid: string): Promise; getTransactionHex(txid: string): Promise; } export {}; //# sourceMappingURL=BlockchairApi.d.ts.map