eth_getBlockByNumber - Etherlink RPC Method
Retrieve complete block data by block number on Etherlink. Perfect for Etherlink developers building on Etherlink mainnet infrastructure and RPC surface.
Returns information about a block by block number on Etherlink.
When to Use This Method
Read the complete historical block at 4,162,737, including its transaction object.
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":22,"method":"eth_getBlockByNumber","params":["0x3f84b1",true]}'eth_blockNumber
Get the current block height on Etherlink. Essential for syncing dApps, monitoring transaction confirmations, and blockchain state tracking.
eth_getBlockByHash
Retrieve complete block data by block hash on Etherlink. Essential for Etherlink developers building on Etherlink mainnet infrastructure and RPC surface.