getNearestBlockTarget

fun getNearestBlockTarget(targetBlocks: Int): Int?(source)

Gets the nearest available block target to the requested target.

This is useful when the exact requested block target is not available.

Return

The nearest available block target, or null if no estimates are available

Parameters

targetBlocks

The desired confirmation target in blocks