calculateEstimates

fun calculateEstimates(mempoolSnapshots: List<MempoolSnapshot>, numOfBlocks: Double? = null): FeeEstimate(source)

Calculates fee estimates based on historical mempool snapshots.

This method analyzes the provided mempool snapshots to generate fee estimates for each block target and confidence level.

Return

A FeeEstimate object containing the calculated estimates.

Parameters

mempoolSnapshots

A list of historical mempool snapshots, ideally covering at least the past 24 hours.

numOfBlocks

Optional specific block target to estimate for. If null or not positive, uses all default block targets.