JSON-RPC (Blockchain Node API Protocol)
Quick Definition
JSON-RPC is a lightweight, stateless remote procedure call protocol encoded in JSON that wallets, dApps, and AI agents use to read on-chain state and broadcast signed transactions to blockchain nodes.
What Is JSON-RPC?
JSON-RPC (JavaScript Object Notation Remote Procedure Call) is a transport-agnostic protocol that lets a client ask a remote server to execute a specific method and return structured JSON data. In crypto, JSON-RPC 2.0 is the standard interface exposed by Bitcoin Core, Ethereum execution clients like Geth, Layer-2 sequencers, and Solana validators. Whenever your wallet displays a token balance, estimates gas fees, or submits a swap, it sends a JSON-RPC request over HTTPS or WebSockets.
Core Blockchain JSON-RPC Methods
Although exact method names vary by chain architecture (EVM vs. Bitcoin vs. Solana), most Web3 interactions rely on a small set of deterministic calls:
| Method (EVM / Bitcoin) | Operation Type | What It Does |
|---|---|---|
eth_getBalance / getbalance |
Read-only query | Fetches native coin balance at a given block height |
eth_call |
Simulated execution | Executes a smart-contract read function locally without spending gas |
eth_estimateGas |
Fee simulation | Estimates gas units needed before signing a transaction |
eth_sendRawTransaction |
State write | Broadcasts an already-signed hex transaction to the mempool |
eth_getLogs |
Event indexing | Queries emitted smart-contract events across block ranges |
Managed RPC Providers vs. Self-Hosted Nodes
Running a full archival node requires terabytes of NVMe storage and continuous client maintenance, so most wallets and dApps connect through managed RPC providers (such as Alchemy, Infura, QuickNode, or Helius) or decentralized RPC networks. However, relying on a single centralized RPC endpoint introduces two trade-offs:
- Privacy & Metadata Leakage: A third-party RPC operator can correlate your IP address with every wallet address you query unless routed via a VPN, Tor, or private node.
- Censorship & MEV Protection: Public RPCs broadcast swaps to public mempools where bots can front-run trades. Privacy-focused RPC endpoints (such as Flashbots Protect) route transactions directly to block builders to mitigate sandwich attacks.
Never confuse an RPC endpoint with custody: a properly designed wallet signs transactions locally (or on a hardware cold wallet) and sends only the signed payload through JSON-RPC—your private key never leaves your device.
Frequently Asked Questions
Can a malicious JSON-RPC endpoint steal my crypto?
An RPC endpoint cannot extract your private keys or sign transactions on its own, but a malicious RPC can spoof displayed balances, censor transactions, or return manipulated gas estimates. Always verify transaction details on your hardware wallet screen.
Why do wallets let you add a custom RPC URL?
Custom RPC URLs let you connect wallets like MetaMask to new Layer-2 networks, private testnets, MEV-protected relays, or your own self-hosted full node for maximum privacy and reliability.
What is the difference between HTTP JSON-RPC and WebSocket RPC?
HTTP JSON-RPC handles one request-response pair at a time, whereas WebSocket (WSS) JSON-RPC maintains a persistent bidirectional connection for real-time new-block and event subscriptions.

Julia, an accomplished crypto and blockchain professional, is known for her insightful YouTube channel "MoneyFest."
Independently Fact-Checked by Vinny Leow
Founder of CRT Labs · Chief Ecosystem Officer at Partisia Blockchain
Related Comparisons & Crypto Wiki Terms
Explore independently benchmarked comparisons and fact-checked Coinweb research on this topic.