eth_getBlockByNumber
Retrieve detailed block information from EVM-compatible blockchains using block number or special tags like 'latest'. Get transaction data, timestamps, and other block metadata for blockchain analysis.
Instructions
Returns information about a block by block number
Input Schema
Name | Required | Description | Default |
---|---|---|---|
blockNumber | Yes | Block number (hex) or 'latest', 'earliest', 'pending' | |
includeTransactions | No | Include full transaction objects |
Input Schema (JSON Schema)
{
"properties": {
"blockNumber": {
"description": "Block number (hex) or 'latest', 'earliest', 'pending'",
"type": "string"
},
"includeTransactions": {
"default": false,
"description": "Include full transaction objects",
"type": "boolean"
}
},
"required": [
"blockNumber"
],
"type": "object"
}