eth_getBlockByHash - Etherlink RPC Method
Retrieve complete block data by block hash on Etherlink. Essential for Etherlink developers building on Etherlink mainnet infrastructure and RPC surface.
Returns information about a block by hash on Etherlink.
When to Use This Method
Read the same historical block using its recorded block hash.
Response Body
ResponseBest Practices
Keep the recorded block height and address together when reproducing a historical example. Preserve RPC errors instead of replacing them with empty results.
Code Examples
curl -X POST "https://api-etherlink-mainnet.n.dwellir.com/YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockByHash","params":["0x8fccc43a1a50e7888b945a82c2c239908ead9ee4720c30774e9f58a2c40a3ad1",true]}'eth_getBlockByNumber
Retrieve complete block data by block number on Etherlink. Perfect for Etherlink developers building on Etherlink mainnet infrastructure and RPC surface.
eth_getBlockReceipts
Return every transaction receipt in a block on Etherlink. Useful for indexers, analytics pipelines, and event backfills across historical blockchain data.