ElectrumClientInterface

Wrapper around an electrum_client::ElectrumApi which includes an internal in-memory transaction cache to avoid re-fetching already downloaded transactions.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Subscribes to notifications for new block headers, by sending a blockchain.headers.subscribe call.

Link copied to clipboard
abstract fun estimateFee(number: ULong): Double

Estimates the fee required in bitcoin per kilobyte to confirm a transaction in number blocks.

Link copied to clipboard
abstract fun fullScan(request: FullScanRequest, stopGap: ULong, batchSize: ULong, fetchPrevTxouts: Boolean): Update

Full scan the keychain scripts specified with the blockchain (via an Electrum client) and returns updates for bdk_chain data structures.

Link copied to clipboard
abstract fun ping()

Pings the server.

Link copied to clipboard

Returns the capabilities of the server.

Link copied to clipboard
abstract fun sync(request: SyncRequest, batchSize: ULong, fetchPrevTxouts: Boolean): Update

Sync a set of scripts with the blockchain (via an Electrum client) for the data specified and returns updates for bdk_chain data structures.

Link copied to clipboard

Broadcasts a transaction to the network.