Mempool Snapshot
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
)
Content copied to clipboard