Parse a json number or string, denoting BTC/kvB, into a CFeeRate (sat/kvB). Reject negative values or rates larger than 1BTC/kvB.

Synopsis

Declared in <rpc/util.h>

CFeeRate
ParseFeeRate(UniValue const& json);

Return Value

The parsed fee rate.

Parameters

Name

Description

json

The fee rate as a JSON number or string.

Created with MrDocs