What is JSON-RPC?
JSON-RPC is a lightweight, remote procedure call (RPC) protocol that uses JSON to encode messages. It enables applications to invoke methods on remote systems as if they were local.Key Characteristics
- Protocol-Agnostic - Works over HTTP, WebSocket, and other transports
- Stateless - Each request is independent
- Lightweight - JSON formatting minimizes overhead while remaining human-readable
Request Structure
A JSON-RPC request contains:Example Request
Response Structure
Example Response
Common Methods
Use Cases
- Wallets - Query balances and submit transactions
- dApps - Interact with smart contracts
- Indexers - Fetch and process blockchain data
- Trading Bots - Monitor state and execute trades

