MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ParseHexV

Function ParseHexV

src/rpc/util.cpp:130–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 return ParseHashV(o.find_value(strKey), strKey);
129}
130std::vector<unsigned char> ParseHexV(const UniValue& v, std::string_view name)
131{
132 std::string strHex;
133 if (v.isStr())
134 strHex = v.get_str();
135 if (!IsHex(strHex))
136 throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("%s must be hexadecimal string (not '%s')", name, strHex));
137 return ParseHex(strHex);
138}
139std::vector<unsigned char> ParseHexO(const UniValue& o, std::string_view strKey)
140{
141 return ParseHexV(o.find_value(strKey), strKey);

Callers 7

importprunedfundsFunction · 0.85
parse_univalue.cppFile · 0.85
verifytxoutproofFunction · 0.85
decodescriptFunction · 0.85
ParseHexOFunction · 0.85
ParseOutputsFunction · 0.85
ParsePrevoutsFunction · 0.85

Calls 4

IsHexFunction · 0.85
JSONRPCErrorFunction · 0.85
ParseHexFunction · 0.85
isStrMethod · 0.80

Tested by

no test coverage detected