JSON-RPC
JSON-RPC Example
Detailed example of executing a standard Ethereum JSON-RPC method through BlockDB.
POST
Documentation Index
Fetch the complete documentation index at: https://docs.blockdb.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
BlockDB supports standard Ethereum JSON-RPC methods. This page provides a template for making calls to the JSON-RPC endpoint, including the expected request structure and response format.Request Parameters
Standard JSON-RPC 2.0 requests require the following fields in the JSON body:The version of the JSON-RPC protocol. Must be
"2.0".The name of the Ethereum method to be invoked (e.g.,
eth_getBlockByNumber, eth_call, eth_getBalance).A structured array of parameters for the specific method being called.
A unique identifier established by the client that will be echoed back in the response.
Response Fields
The JSON-RPC response follows the standard envelope:The version of the JSON-RPC protocol.
The unique identifier passed in the request.
The method-specific result object. The structure varies depending on the method invoked.
Present only if the request failed. Contains
code, message, and optional data.Last modified on May 29, 2026