Parse a confirm target option and raise an RPC error if it is invalid.

Synopsis

Declared in <rpc/util.h>

unsigned int
ParseConfirmTarget(
    UniValue const& value,
    unsigned int max_target);

Return Value

The parsed confirmation target in blocks.

Parameters

Name

Description

value

The confirmation target as a JSON number.

max_target

The maximum allowed confirmation target.

Created with MrDocs