params are identical across both; only the framing differs.
The envelope
A request carries anid, the protocol version, the method path, and a params object.
result or an error — never both — and echoes the request id.
The JSON-RPC 2.0 request/response envelope and the WebSocket and HTTP transports shared by every method.
params are identical across both; only the framing differs.
id, the protocol version, the method path, and a params object.
result or an error — never both — and echoes the request id.