import type { Bytes } from '@did-btcr2/common'; import type { RawTransactionRest } from '../../types.js'; import type { HttpRequest } from '../http.js'; import type { EsploraProtocol } from './protocol.js'; export declare class BitcoinTransaction { private readonly protocol; private readonly exec; constructor(protocol: EsploraProtocol, exec: (req: HttpRequest) => Promise); /** * Returns the transaction in JSON format. * See {@link https://github.com/blockstream/esplora/blob/master/API.md#get-txtxid | Esplora GET /tx/:txid } for details. * @param {string} txid The transaction id (required). * @returns {Promise} A promise resolving to data about a transaction. */ get(txid: string): Promise; /** * Checks if a transaction is confirmed. * @param {string} txid The transaction id (required). * @returns {Promise} True if the transaction is confirmed. */ isConfirmed(txid: string): Promise; /** * Returns the raw transaction as a hex string. * See {@link https://github.com/blockstream/esplora/blob/master/API.md#get-txtxidhex | Esplora GET /tx/:txid/hex } for details. * @param {string} txid The transaction id (required). * @returns {Promise} A promise resolving to the raw transaction hex. */ getHex(txid: string): Promise; /** * Returns the raw transaction as binary data. * See {@link https://github.com/blockstream/esplora/blob/master/API.md#get-txtxidraw | Esplora GET /tx/:txid/raw } for details. * @param {string} txid The transaction id (required). * @returns {Promise} A promise resolving to the raw transaction bytes. */ getRaw(txid: string): Promise; /** * Broadcast a raw transaction to the network. * See {@link https://github.com/blockstream/esplora/blob/master/API.md#post-tx | Esplora POST /tx } for details. * @param {string} tx The raw transaction in hex format (required). * @returns {Promise} The transaction id of the broadcasted transaction. */ send(tx: string): Promise; } //# sourceMappingURL=transaction.d.ts.map