[#uint256-FromUserHex] = xref:uint256.adoc[uint256]::FromUserHex :relfileprefix: ../ :mrdocs: Parses a uint256 from user‐supplied hex, allowing a "0x" prefix and padding. == Synopsis Declared in `<uint256.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::optional<uint256> FromUserHex(std::string_view str); ---- == Return Value The parsed uint256, or std::nullopt if the string is invalid. == Parameters [cols="1,4"] |=== | Name| Description | *str* | The hex string to parse. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#