Skip to main content

JsonRpcResponse

A JSON-RPC 2.0 response, relayed back from the core service unchanged.

jsonrpcstring
Example: 2.0
id

The id of the request being answered.

Example: 1
result object

Present on success. Shape depends on the method.

property name*any

Present on success. Shape depends on the method.

error object

Present on a JSON-RPC level failure.

codeint32
Example: -32601
messagestring
Example: Method not found
data

Optional additional detail.

JsonRpcResponse
{
"jsonrpc": "2.0",
"id": 1,
"result": {},
"error": {
"code": -32601,
"message": "Method not found"
}
}