MCPcopy Create free account
hub / github.com/ElementsProject/elements / JSONRPCError

Function JSONRPCError

src/rpc/request.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56UniValue JSONRPCError(int code, const std::string& message)
57{
58 UniValue error(UniValue::VOBJ);
59 error.pushKV("code", code);
60 error.pushKV("message", message);
61 return error;
62}
63
64/** Username used when cookie authentication is in use (arbitrary, only for
65 * recognizability in debugging/logging purposes)

Callers 15

HTTPReq_JSONRPCFunction · 0.85
getnewaddressFunction · 0.85
getrawchangeaddressFunction · 0.85
setlabelFunction · 0.85
addmultisigaddressFunction · 0.85
keypoolrefillFunction · 0.85
getaddressinfoFunction · 0.85
getaddressesbylabelFunction · 0.85
walletdisplayaddressFunction · 0.85
RescanWalletFunction · 0.85
importprivkeyFunction · 0.85
importaddressFunction · 0.85

Calls 1

pushKVMethod · 0.45

Tested by 1

FUZZ_TARGETFunction · 0.68