JSONRPCError

data class JSONRPCError(val id: RequestId?, val error: RPCError) : JSONRPCMessage(source)

A response to a request that indicates an error occurred.

Sent in response to a JSONRPCRequest when the method execution fails. The id must match the id of the original request.

Constructors

Link copied to clipboard
constructor(id: RequestId?, error: RPCError)

Properties

Link copied to clipboard

Details about the error that occurred, including error code and message.

Link copied to clipboard

The identifier from the original request. Used to match error responses to requests.

Link copied to clipboard
open override val jsonrpc: String

Always "2.0" to indicate JSON-RPC 2.0 protocol.