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

Function JSONRPCError

src/rpc/request.cpp:70–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70UniValue JSONRPCError(int code, const std::string& message)
71{
72 UniValue error(UniValue::VOBJ);
73 error.pushKV("code", code);
74 error.pushKV("message", message);
75 return error;
76}
77
78/** Username used when cookie authentication is in use (arbitrary, only for
79 * recognizability in debugging/logging purposes)

Callers 15

ExecuteHTTPRPCFunction · 0.85
HTTPReq_JSONRPCFunction · 0.85
getnewaddressFunction · 0.85
getrawchangeaddressFunction · 0.85
setlabelFunction · 0.85
keypoolrefillFunction · 0.85
getaddressinfoFunction · 0.85
getaddressesbylabelFunction · 0.85
listlabelsFunction · 0.85
walletdisplayaddressFunction · 0.85
importprunedfundsFunction · 0.85
removeprunedfundsFunction · 0.85

Calls 1

pushKVMethod · 0.80

Tested by 1

FUZZ_TARGETFunction · 0.68