MempoolSnapshot

data class MempoolSnapshot(val blockHeight: Int, val timestamp: Instant, val bucketedWeights: Map<Int, Long>)(source)

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

The snapshot contains transactions grouped into buckets by fee rate, along with metadata about when the snapshot was taken and at what block height.

Example usage:

// Create from raw mempool transactions
val snapshot = MempoolSnapshot.fromMempoolTransactions(
transactions = mempoolTransactions,
blockHeight = currentBlockHeight
)

Constructors

Link copied to clipboard
constructor(blockHeight: Int, timestamp: Instant, bucketedWeights: Map<Int, Long>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The Bitcoin block height when this snapshot was taken

Link copied to clipboard

Map of fee rate bucket indices to total transaction weight

Link copied to clipboard

When this snapshot was taken