Details on Uniblock's JSON-RPC service with our AI router to facilitate your requests.
Remember to create your project & get your API-KEY through our Uniblock's dashboard.
JSON-RPC is a protocol used to communicate with blockchain nodes, enabling both read and write operations. They have a JSON-RPC interface for read requests.
JSON-RPC is a remote procedure call (RPC) protocol that uses JSON to encode messages, making it an API standard similar to REST. It exclusively deals with transporting data in JSON format and facilitates communication by executing remote procedure calls on a server.
Uniblock's JSON-RPC implementation adds in our AI router to help route your request to the best provider based on reliability, latency and cost. With features like automated fallback and auto retry, we try to make sure your request will not fail.
Looking for a full list of supported JSON-RPC chains? Head to the JSON-RPC chains page.
Supported JSON-RPC Chains
For more details on our JSON-RPC service, head to our JSON-RPC chains page for our comprehensive mapping of supported chains and methods. Also, feel free to checkout the chains and API reference pages under Blockchain JSON-RPC for more detailed request examples to test live on our docs.
Quickstart
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": "2.0",
"method": "eth_getBalance",
"params": ["0xAddress", "latest"],
"id": 1
}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": "2.0",
"result": "0x7cf7d42bb6a906",
"id": 1
}jsonrpc: Mirrored version (2.0)result: The balance in weiid: Request identifier
Tester
Uniblock's dashboard also has a built in JSON-RPC tester that can be used to test our supported JSON-RPC methods across our chains.