← All articles

Test JSON-RPC Calls in Your Browser

rpchub · October 6, 2025

Debugging a contract interaction, and you want to test an eth_call, check eth_getBalance for an address, or see what eth_getLogs returns for a particular event. Where do you start?

The usual answer is to open a terminal, fire up curl or a Python script, build the JSON-RPC payload manually, hit the endpoint, parse the response, then do it all again for every method you need to test. It works, but it's slow—and when you're debugging, slow is the last thing you want.

The friction of the old way

JSON-RPC is the language blockchains speak. Every wallet, dApp, and on-chain tool communicates through JSON-RPC calls. Yet testing them has always been more cumbersome than it needs to be:

  • Terminal workflows require you to remember method signatures, parameter formats, and endpoint URLs
  • No request history means rebuilding the same calls every session
  • No presets for common methods means typing {"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1} over and over
  • Switching endpoints means updating URLs by hand to test against a different chain

What a modern RPC playground looks like

Browser-based, server-proxy powered

Send JSON-RPC requests straight from your browser. The platform proxies server-side, so you never fight CORS errors. Pick a chain, pick a method, send, get a response. That's the whole workflow.

Presets for common calls

No more typing boilerplate. There are ready-made templates for the methods you use most:

  • eth_blockNumber — check the current block
  • eth_getBalance — query any address balance
  • eth_call — run a read-only contract call
  • eth_getTransactionByHash — look up a transaction
  • eth_getLogs — filter event logs
  • And more

Pick a preset, fill in the parameters, send. Done.

Request history stored locally

Every request you send is saved in your browser. Come back tomorrow and last week's tests are still there. No accounts, no cloud storage—just local persistence that works.

Export as cURL

Need to share a test case with a teammate? Export any request as a ready-to-run cURL command. One click, copy, paste into the terminal.

Who benefits

  • Smart contract developers testing contract interactions during development
  • dApp engineers debugging frontend-to-blockchain communication
  • Security researchers probing contract behavior with specific RPC calls
  • Anyone who's typed a JSON-RPC payload by hand and thought there has to be a better way

Free and no setup

No API keys, no sign-up, no configuration. Open the page, pick a chain, start testing. The server-side proxy handles all the complexity of routing your requests to the right endpoints.

Find it at rpchub.top/playground