MCPcopy Create free account
hub / github.com/LUX-Core/lux / ParseHexV

Function ParseHexV

src/rpcserver.cpp:144–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 return ParseHashV(find_value(o, strKey), strKey);
143}
144vector<unsigned char> ParseHexV(const UniValue& v, string strName)
145{
146 string strHex;
147 if (v.isStr())
148 strHex = v.get_str();
149 if (!IsHex(strHex))
150 throw JSONRPCError(RPC_INVALID_PARAMETER, strName + " must be hexadecimal string (not '" + strHex + "')");
151 return ParseHex(strHex);
152}
153vector<unsigned char> ParseHexO(const UniValue& o, string strKey)
154{
155 return ParseHexV(find_value(o, strKey), strKey);

Callers 5

ParseHexOFunction · 0.85
importprunedfundsFunction · 0.85
createrawtransactionFunction · 0.85
decodescriptFunction · 0.85
signrawtransactionFunction · 0.85

Calls 5

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

Tested by

no test coverage detected