A generic error in the JSON-RPC protocol. This is returned by the server when a request from clients is deemed invalid or, when the server was unable to reply to a well-formed request.

Hierarchy

  • RpcError

Index

Properties

Properties

error

error: object

Type declaration

  • code: number

    An error code telling about the nature of the error.

  • Optional data?: unknown
  • Optional message?: string

    A descriptive error message giving hints about the error.

Optional id

id: unknown

jsonrpc

jsonrpc: "2.0"