Module client::rpc::errors::error_codes

source ·
Expand description

RPC Error codes and error objects

Constants§

  • Call() execution error. This is clearly an application level error code, but we keep the error code to be ethereum rpc client compatible.
  • The requested feature is deprecated.
  • Encoding error happened in signing structured data. Related to EIP712.
  • Any exception happened while processing the transaction. Mostly likely there is an internal error within the server state.
  • The requested feature is experimental.
  • The node is not able to serve the request due to configuration. e.g. Not mining, light node, not archive node.
  • No peers are currently connected or there is insufficient amount of peers connected.
  • No connection to trusted peers.
  • The error can be given to a request about a previous related request which we can not associate with.
  • When the node is still in catch up mode, it is not capable to handle certain requests. We will return this code in this situation.
  • When the request is considered too much for the rpc function. The consideration is set individually per rpc. It can be data too large, or it can be that some performance/security related parameter is outside the accepted range.
  • When there are too many rpc requests. We limit the number of allowed rpc requests for attack prevention.
  • The node see a suspicious total mining power or block rate. It’s likely that the node is under attack or the whole Conflux network enters an abnormal state.
  • The request is not supported (yet) at this version.