import type { BitcoinCoinConfig } from "../config"; import type { ExplorerBlock, ExplorerFees, ExplorerNetworkInfo, ExplorerPendingUtxos, ExplorerTx, ExplorerTxPage, ExplorerUtxo, TransactionSourceHeaders } from "./types"; type ExplorerConfig = Pick; /** * Base URL of the currency on the Ledger explorer, from the config's `explorerId`, which every * currency the API serves sets. Rebuilt from the config on every call, so a config change applies * to the next request. */ export declare function explorerBaseUrl(config: ExplorerConfig): string; /** Confirmed balance of an address (the explorer does not count mempool funds here). */ export declare function fetchAddressBalance(config: ExplorerConfig, address: string): Promise; /** Every confirmed (mined) unspent output of an address, following the explorer's pagination to the last page. */ export declare function fetchUtxos(config: ExplorerConfig, address: string): Promise; /** * One page of the confirmed transactions of an address. `minHeight` is a lower bound in both * orders (verified on the explorer); `token` is the cursor the previous page returned. */ export declare function fetchAddressTxs(config: ExplorerConfig, address: string, options: { minHeight: number; order: "asc" | "desc"; limit?: number; token?: string; }): Promise; /** * A transaction, confirmed or not. Some explorer versions answer with a one-element array; the * element is returned. */ export declare function fetchTx(config: ExplorerConfig, txid: string): Promise; /** Raw (serialized) transaction, hex. */ export declare function fetchTxHex(config: ExplorerConfig, txid: string): Promise; /** Outputs of an address created and spent by mempool transactions. */ export declare function fetchPendingUtxos(config: ExplorerConfig, address: string): Promise; /** Fee rates (sat/kB) by confirmation target. */ export declare function fetchFeeRates(config: ExplorerConfig): Promise; /** Network parameters, including the minimum relay fee. */ export declare function fetchNetworkInfo(config: ExplorerConfig): Promise; /** Current chain tip. The endpoint returns an object. */ export declare function fetchCurrentBlock(config: ExplorerConfig): Promise; /** Block at `height`. The endpoint returns an array; an empty one means no such block. */ export declare function fetchBlock(config: ExplorerConfig, height: number): Promise; /** Every transaction of the block at `height`, in a single response. */ export declare function fetchBlockTxs(config: ExplorerConfig, height: number): Promise; /** Submit a signed raw transaction; returns the `result` field of the explorer response as is. */ export declare function sendRawTransaction(config: ExplorerConfig, hex: string, source?: TransactionSourceHeaders): Promise; export {}; //# sourceMappingURL=explorer.d.ts.map