RPC Error Codes

Finalized

Introduction

Interact with the Ixian API may result in error responses. These errors follow the JSON-RPC 2.0 specification. The error field in the JSON response will contain a code and a message. This document lists the standardized error codes you may encounter.

Standard JSON-RPC 2.0 Errors

CodeMessageDescription
-32600Invalid RequestThe JSON sent is not a valid Request object.
-32601Method Not FoundThe method does not exist / is not available.
-32602Invalid ParamsInvalid method parameter(s).
-32603Internal ErrorInternal JSON-RPC error.
-32700Parse ErrorInvalid JSON was received by the server.

General Application Errors

CodeDescription
-1Miscellaneous error.
-2Forbidden by safe mode.
-3Type error (unexpected parameter type).
-5Invalid address or key.
-7Out of memory.
-8Invalid, missing, or duplicate parameter.
-20Database error.
-22Deserialization error.
-25Verification error (general).
-26Verification rejected (network rules).
-27Transaction already in chain.
-28Client in warmup.

P2P Client Errors

CodeDescription
-9Client not connected.
-10Client in initial download (synchronizing).
-23Node already added.
-24Node not added.

Wallet Errors

CodeDescription
-4Unspecified wallet error.
-6Insufficient funds.
-11Invalid account name.
-12Keypool ran out.
-13Wallet unlock needed.
-14Incorrect passphrase.
-15Wrong encryption state.
-16Encryption failed.
-17Wallet already unlocked.