getBlockInfo
Retrieve detailed information about a specific block by providing a chain ID and block number or hash, supporting networks like Ethereum and Polygon via the agentek-eth MCP server.
Instructions
Get information about a specific block
Input Schema
Name | Required | Description | Default |
---|---|---|---|
blockNumberOrHash | Yes | ||
chain | Yes | Chain ID for the blockchain network. Supports: 1, 137, 42161, 10, and 8453 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"blockNumberOrHash": {
"type": [
"string",
"number"
]
},
"chain": {
"anyOf": [
{
"enum": [
"1",
"137",
"42161",
"10",
"8453"
],
"type": "string"
},
{
"allOf": [
{
"type": "number"
},
{
"enum": [
"1",
"137",
"42161",
"10",
"8453"
],
"type": "string"
}
]
}
],
"description": "Chain ID for the blockchain network. Supports: 1, 137, 42161, 10, and 8453"
}
},
"required": [
"chain",
"blockNumberOrHash"
],
"type": "object"
}