JSON-RPC in action: client sends a method call, server responds with results
JSON-RPC is a lightweight, stateless remote procedure call (RPC) protocol. It uses JSON to encode requests and responses and operates over HTTP, WebSockets, or any other transport.
It’s especially popular in systems where you want to keep integration simple and language-agnostic — like between a backend server and an AI model, or between microservices.
{
"jsonrpc": "2.0",
"method": "getBalance",
"params": ["0x1234..."],
"id": 1
}
{
"jsonrpc": "2.0",
"result": 1000,
"id": 1
}
JSON-RPC is widely used in blockchain, AI agent toolchains, and increasingly with Model Context Protocol (MCP) as the transport layer for function calls.