import type { AddressInfo, AddressUtxo, RawTransactionRest } from '../../types.js'; import type { HttpRequest } from '../http.js'; import type { EsploraProtocol } from './protocol.js'; /** * Address-related Esplora REST API operations. */ export declare class BitcoinAddress { private readonly protocol; private readonly exec; constructor(protocol: EsploraProtocol, exec: (req: HttpRequest) => Promise); /** * Get transaction history for the specified address/scripthash, sorted with newest first. * Returns up to 50 mempool transactions plus the first 25 confirmed transactions. * See {@link https://github.com/blockstream/esplora/blob/master/API.md#get-addressaddresstxs | Esplora GET /address/:address/txs } for details. * @param {string} addressOrScripthash The address or scripthash to check. * @returns {Promise>} Transaction history. */ getTxs(addressOrScripthash: string): Promise>; /** * Checks if an address has any confirmed funded transactions. * @param {string} addressOrScripthash The address or scripthash to check. * @returns {Promise} True if the address has confirmed funds. */ isFundedAddress(addressOrScripthash: string): Promise; /** * Get unconfirmed transaction history for the specified address/scripthash. * Returns up to 50 transactions (no paging). * @param {string} addressOrScripthash The address or scripthash to check. * @returns {Promise>} Unconfirmed transactions. */ getTxsMempool(addressOrScripthash: string): Promise>; /** * Get information about an address/scripthash. * @param {string} addressOrScripthash The address or scripthash to check. * @returns {Promise} Address information. */ getInfo(addressOrScripthash: string): Promise; /** * Get confirmed transaction history for the specified address/scripthash, sorted with newest first. * Returns 25 transactions per page. * @param {string} addressOrScripthash The address or scripthash to check. * @param {string} [lastSeenTxId] The last transaction id seen by the previous query for pagination. * @returns {Promise>} Confirmed transactions. */ getConfirmedTxs(addressOrScripthash: string, lastSeenTxId?: string): Promise>; /** * Get the list of unspent transaction outputs associated with the address/scripthash. * See {@link https://github.com/Blockstream/esplora/blob/master/API.md#get-addressaddressutxo | Esplora GET /address/:address/utxo } for details. * @param {string} addressOrScripthash The address or scripthash to check. * @returns {Promise>} Unspent transaction outputs. */ getUtxos(addressOrScripthash: string): Promise>; } //# sourceMappingURL=address.d.ts.map