uint256::FromHex

Parses a uint256 from a hex string.

Synopsis

Declared in <uint256.h>

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

Return Value

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

Parameters

NameDescription
strThe hex string to parse.