6 #ifndef BITCOIN_RPCPROTOCOL_H 7 #define BITCOIN_RPCPROTOCOL_H 13 #include <boost/filesystem.hpp> 94 #endif // BITCOIN_RPCPROTOCOL_H UniValue JSONRPCReplyObj(const UniValue &result, const UniValue &error, const UniValue &id)
std::string JSONRPCReply(const UniValue &result, const UniValue &error, const UniValue &id)
Keypool ran out, call keypoolrefill first.
bool GenerateAuthCookie(std::string *cookie_out)
Failed to encrypt the wallet.
General error during transaction or block submission.
HTTPStatusCode
HTTP status codes.
bool GetAuthCookie(std::string *cookie_out)
Transaction already in chain.
Ran out of memory during operation.
Error parsing or validating structure in raw format.
Enter the wallet passphrase with walletpassphrase first.
Transaction or block was rejected by network rules.
static bool error(const char *format)
Server is in safe mode, and command is not allowed in safe mode.
The wallet passphrase entered was incorrect.
General application defined errors.
Unexpected type was passed as parameter.
Node to disconnect not found in connected nodes.
Not enough funds in wallet or account.
Invalid, missing or duplicate parameter.
Command given in wrong wallet encryption state (encrypting an encrypted wallet etc.)
Unspecified problem with wallet (key not found etc.)
Node has not been added before.
Still downloading initial blocks.
std::exception thrown in command handling
UniValue JSONRPCError(int code, const std::string &message)
std::string JSONRPCRequest(const std::string &strMethod, const UniValue ¶ms, const UniValue &id)
boost::filesystem::path GetAuthCookieFile()
Standard JSON-RPC 2.0 errors.
RPCErrorCode
Dash Core RPC error codes.
Dash Core is not connected.