Interface EsploraClientInterface
-
- All Implemented Interfaces:
public interface EsploraClientInterfaceWrapper around an esplora_client::BlockingClient which includes an internal in-memory transaction cache to avoid re-fetching already downloaded transactions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEsploraClientInterface.Companion
-
Method Summary
Modifier and Type Method Description abstract Unitbroadcast(Transaction transaction)Broadcast a `Transaction` to Esplora. abstract UpdatefullScan(FullScanRequest request, ULong stopGap, ULong parallelRequests)Scan keychain scripts for transactions against Esplora, returning an update that can be applied to the receiving structures. abstract StringgetBlockHash(UInt blockHeight)Get the `BlockHash` of a specific block height. abstract Map<UShort, Double>getFeeEstimates()Get a map where the key is the confirmation target (in number of blocks) and the value is the estimated feerate (in sat/vB). abstract UIntgetHeight()Get the height of the current blockchain tip. abstract TransactiongetTx(String txid)Get a `Transaction` option given its `Txid`. abstract TxgetTxInfo(String txid)Get transaction info given its `Txid`. abstract TxStatusgetTxStatus(String txid)Get the status of a `Transaction` given its `Txid`. abstract Updatesync(SyncRequest request, ULong parallelRequests)Sync a set of scripts, txids, and/or outpoints against Esplora. -
-
Method Detail
-
broadcast
abstract Unit broadcast(Transaction transaction)
Broadcast a `Transaction` to Esplora.
-
fullScan
abstract Update fullScan(FullScanRequest request, ULong stopGap, ULong parallelRequests)
Scan keychain scripts for transactions against Esplora, returning an update that can be applied to the receiving structures.
requestprovides the data required to perform a script-pubkey-based full scan (see `FullScanRequest`). The full scan for each keychain (K) stops after a gap ofstop_gapscript pubkeys with no associated transactions.parallel_requestsspecifies the maximum number of HTTP requests to make in parallel.
-
getBlockHash
abstract String getBlockHash(UInt blockHeight)
Get the `BlockHash` of a specific block height.
-
getFeeEstimates
abstract Map<UShort, Double> getFeeEstimates()
Get a map where the key is the confirmation target (in number of blocks) and the value is the estimated feerate (in sat/vB).
-
getTx
abstract Transaction getTx(String txid)
Get a `Transaction` option given its `Txid`.
-
getTxStatus
abstract TxStatus getTxStatus(String txid)
Get the status of a `Transaction` given its `Txid`.
-
sync
abstract Update sync(SyncRequest request, ULong parallelRequests)
Sync a set of scripts, txids, and/or outpoints against Esplora.
requestprovides the data required to perform a script-pubkey-based sync (see `SyncRequest`).parallel_requestsspecifies the maximum number of HTTP requests to make in parallel.
-
-
-
-