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

Function JSONRPCError

src/rpc/protocol.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

HTTPReq_JSONRPCFunction · 0.85
EnsureWalletIsAvailableFunction · 0.85
EnsureWalletIsUnlockedFunction · 0.85
LabelFromValueFunction · 0.85
getnewaddressFunction · 0.85
GetLabelDestinationFunction · 0.85
getaccountaddressFunction · 0.85
getrawchangeaddressFunction · 0.85
setlabelFunction · 0.85
getaccountFunction · 0.85
getaddressesbyaccountFunction · 0.85

Calls 1

pushKVMethod · 0.45

Tested by

no test coverage detected