MCPcopy Create free account
hub / github.com/LUX-Core/lux / JSONRPCError

Function JSONRPCError

src/rpcprotocol.cpp:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

EnsureWalletIsAvailableFunction · 0.85
EnsureWalletIsUnlockedFunction · 0.85
AccountFromValueFunction · 0.85
parseUIntFunction · 0.85
parseBlockHeightFunction · 0.85
parseParamH160Function · 0.85
parseParamFunction · 0.85
getnewaddressFunction · 0.85
GetAccountDestinationFunction · 0.85
getrawchangeaddressFunction · 0.85
setaccountFunction · 0.85
getaccountFunction · 0.85

Calls 2

PairFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected