uint160::FromHex

Parses a uint160 from a hex string.

Synopsis

Declared in <uint256.h>

static
std::optional<uint160>
FromHex(std::string_view str);

Return Value

The parsed uint160, or std::nullopt if the string is invalid.

Parameters

NameDescription
strThe hex string to parse.