Aller au contenu

JSON-RPC

Only the JSON-RPC 2.0 version will be discussed here

Protocol

Basic request

{"jsonrpc": "2.0"; "method": <name of jsonrpc method>; "id":"<identifier>"}
  • id can be NULL for notifications. Must be filled for request/response (correlation id)
  • params is optional and can be any structure

vs gRPC

gRPC uses HTTP/2 + Protobuf