ParseHashO

Parse a hex-encoded hash from a named field of an object.

Synopsis

Declared in <rpc/util.h>

uint256
ParseHashO(
    UniValue const& o,
    std::string_view strKey);

Return Value

The parsed 256-bit hash.

Parameters

NameDescription
oThe object to read from.
strKeyThe key of the field to parse.