/ DEVELOPERS / API / ETH_GETBLOCKBYNUMBER

eth_getBlockByNumber

Ethereum-shaped block envelope (parentHash, transactionsRoot, baseFeePerGas, etc.).

eth_getBlockByNumber

Ethereum-shaped block envelope (parentHash, transactionsRoot, baseFeePerGas, etc.).

eth_*category: blockreturns: object
Share link

Parameters

Block tag or hex height

Include full tx objects vs. just hashes

Response

Press Send Request to see a response.

Copy as

curl -X POST '/rpc' \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest",false],"id":1}'