Package-level declarations

Main public API

Types

Link copied to clipboard
data class BlockTarget(val blocks: Int, val probabilities: Map<Double, Double>)

Represents fee estimates for a specific block target with multiple confidence levels.

Link copied to clipboard
data class FeeEstimate(val estimates: Map<Int, BlockTarget>, val timestamp: Instant)

Represents a complete fee estimate with predictions for various block targets and confidence levels.

Link copied to clipboard
class FeeEstimator @JvmOverloads constructor(probabilities: List<Double> = DEFAULT_PROBABILITIES, blockTargets: List<Double> = DEFAULT_BLOCK_TARGETS, shortTermWindowDuration: Duration = Duration.ofMinutes(30), longTermWindowDuration: Duration = Duration.ofHours(24))

The main entry point for calculating Bitcoin fee estimates.

Link copied to clipboard
data class MempoolSnapshot(val blockHeight: Int, val timestamp: Instant, val bucketedWeights: Map<Int, Long>)

Represents a snapshot of the Bitcoin mempool at a specific point in time.

Link copied to clipboard
data class MempoolTransaction(val weight: Long, val fee: Long)

Represents a transaction in the Bitcoin mempool.