JsonRpcResponse
A JSON-RPC 2.0 response, relayed back from the core service unchanged.
jsonrpcstring
Example:
2.0id
The id of the request being answered.
Example:
1result 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:
-32601messagestring
Example:
Method not founddata
Optional additional detail.
JsonRpcResponse
{
"jsonrpc": "2.0",
"id": 1,
"result": {},
"error": {
"code": -32601,
"message": "Method not found"
}
}