 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
6 #ifndef BITCOIN_RPCPROTOCOL_H
7 #define BITCOIN_RPCPROTOCOL_H
96 #endif // BITCOIN_RPCPROTOCOL_H
@ RPC_INVALID_REQUEST
Standard JSON-RPC 2.0 errors.
@ RPC_VERIFY_REJECTED
General error during transaction or block submission.
@ RPC_MISC_ERROR
General application defined errors.
@ HTTP_SERVICE_UNAVAILABLE
bool GenerateAuthCookie(std::string *cookie_out)
Generate a new RPC authentication cookie and write it to disk.
@ RPC_WALLET_ALREADY_UNLOCKED
Failed to encrypt the wallet.
@ RPC_WALLET_WRONG_ENC_STATE
The wallet passphrase entered was incorrect.
@ RPC_PRIVACY_DECOY_MIN
Privacy wallet is existed.
@ RPC_TRANSACTION_REJECTED
@ RPC_VERIFY_ERROR
Error parsing or validating structure in raw format.
HTTPStatusCode
HTTP status codes.
@ RPC_INVALID_PARAMETER
Ran out of memory during operation.
std::string JSONRPCReply(const UniValue &result, const UniValue &error, const UniValue &id)
@ RPC_CLIENT_IN_INITIAL_DOWNLOAD
PRCY is not connected.
@ RPC_FORBIDDEN_BY_SAFE_MODE
std::exception thrown in command handling
@ RPC_WALLET_KEYPOOL_RAN_OUT
Invalid account name.
bool GetAuthCookie(std::string *cookie_out)
Read the RPC authentication cookie from disk.
@ RPC_WALLET_INVALID_ACCOUNT_NAME
Not enough funds in wallet or account.
@ RPC_TRANSACTION_ALREADY_IN_CHAIN
@ RPC_DESERIALIZATION_ERROR
Database error.
fs::path GetAuthCookieFile()
Get name of RPC authentication cookie file.
@ RPC_WALLET_PASSPHRASE_INCORRECT
Enter the wallet passphrase with unlockwallet first.
@ RPC_DATABASE_ERROR
Invalid, missing or duplicate parameter.
@ RPC_WALLET_UNLOCK_NEEDED
Keypool ran out, call keypoolrefill first.
@ RPC_WALLET_ENCRYPTION_FAILED
Command given in wrong wallet encryption state (encrypting an encrypted wallet etc....
@ RPC_INVALID_BLOCK_HEIGHT
Client still warming up.
@ RPC_IN_WARMUP
Transaction already in chain.
@ RPC_WALLET_ERROR
Invalid IP/Subnet.
@ RPC_INVALID_ADDRESS_OR_KEY
Unexpected type was passed as parameter.
@ RPC_OUT_OF_MEMORY
Invalid address or key.
@ RPC_WALLET_INSUFFICIENT_FUNDS
Unspecified problem with wallet (key not found etc.)
RPCErrorCode
PRCY RPC error codes.
@ RPC_CLIENT_NODE_ALREADY_ADDED
Still downloading initial blocks.
@ RPC_CLIENT_NODE_NOT_ADDED
Node is already added.
void DeleteAuthCookie()
Delete RPC authentication cookie from disk.
@ RPC_CLIENT_NODE_NOT_CONNECTED
Node has not been added before.
UniValue JSONRPCReplyObj(const UniValue &result, const UniValue &error, const UniValue &id)
@ RPC_VERIFY_ALREADY_IN_CHAIN
Transaction or block was rejected by network rules.
@ RPC_TYPE_ERROR
Server is in safe mode, and command is not allowed in safe mode.
@ RPC_PRIVACY_WALLET_EXISTED
Wallet is already unlocked.
std::string JSONRPCRequest(const std::string &strMethod, const UniValue ¶ms, const UniValue &id)
JSON-RPC protocol.
@ RPC_ERROR_CODE_UNKNOWN_ERROR
UniValue JSONRPCError(int code, const std::string &message)
bool error(const char *fmt, const Args &... args)
@ RPC_TRANSACTION_ERROR
Invalid block height.
@ RPC_CLIENT_INVALID_IP_OR_SUBNET
Node to disconnect not found in connected nodes.
@ RPC_CLIENT_NOT_CONNECTED
P2P client errors.
@ HTTP_INTERNAL_SERVER_ERROR