Parse a hex-encoded byte vector from a UniValue, throwing an RPC error if it is not valid hex.
Declared in <rpc/util.h>
std::vector<unsigned char>
ParseHexV(
UniValue const& v,
std::string_view name);
The decoded bytes.
| Name | Description |
|---|---|
| v | The value expected to hold a hex string. |
| name | The parameter name used in error messages. |