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

Function ParseHexV

src/rpc/server.cpp:135–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 return ParseHashV(find_value(o, strKey), strKey);
134}
135std::vector<unsigned char> ParseHexV(const UniValue& v, std::string strName)
136{
137 std::string strHex;
138 if (v.isStr())
139 strHex = v.get_str();
140 if (!IsHex(strHex))
141 throw JSONRPCError(RPC_INVALID_PARAMETER, strName+" must be hexadecimal string (not '"+strHex+"')");
142 return ParseHex(strHex);
143}
144std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKey)
145{
146 return ParseHexV(find_value(o, strKey), strKey);

Callers 6

importprunedfundsFunction · 0.85
verifytxoutproofFunction · 0.85
ConstructTransactionFunction · 0.85
decodescriptFunction · 0.85
SignTransactionFunction · 0.85
ParseHexOFunction · 0.85

Calls 4

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

Tested by

no test coverage detected