Parse a fee estimate mode from its string name.

Synopsis

Declared in <common/messages.h>

bool
FeeModeFromString(
    std::string_view mode_string,
    FeeEstimateMode& fee_estimate_mode);

Return Value

true if the string named a valid mode.

Parameters

Name

Description

mode_string

The mode name to parse (case‐insensitive).

fee_estimate_mode

Set to the parsed mode on success.

Created with MrDocs