Key JSON-RPC Methods
Some common JSON-RPC methods available on Ethereum nodes include:eth_blockNumbereth_getBalanceeth_getBlockByNumbereth_sendRawTransaction(for write operations)
JSON-RPC Request Example
A typical JSON-RPC request to get the balance of an address looks like this:jsonrpc: Version (always 2.0)method: The method to callparams: Relevant parametersid: Request identifier
JSON-RPC Response Example
A response to the above request might look like this:jsonrpc: Mirrored version (2.0)result: The balance in weiid: Request identifier
JSON-RPC Tools
Use tools like the Uniblock’s API Tester to quickly make your first JSON-RPC request, Uniblock’s JSON-RPC URL Tool to get the URL with URL based authentication and also our pre-defined examples for JSON-RPC methods .What’s Next Learn how to setup your JSON-RPC request with your Uniblock Project.