JSON-RPC

Also known as: Blockchain RPC Protocol, Ethereum Node API, Remote Procedure Call JSON

A lightweight remote procedure call protocol used by blockchain nodes to communicate and interact with client applications.

JSON-RPC is a stateless, lightweight protocol for remote procedure calls using JSON-encoded messages. In blockchain, it's widely used for communication between nodes and clients, enabling developers to query blockchain data, submit transactions, and interact with smart contracts. Ethereum nodes, for example, expose JSON-RPC endpoints to support dApp and wallet interactions. Requests typically follow a standard format: specifying the method (e.g., `eth_getBalance`), parameters, and an ID for tracking. JSON-RPC is essential for Web3 infrastructure, and most Web3 libraries like web3.js or ethers.js rely on it for backend communication.

Frequently Asked Questions