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

Function ParseHexV

src/rpcserver.cpp:146–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

ParseHexOFunction · 0.85
verifytxoutproofFunction · 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