MetaMask MCP

get-block

Fetch detailed information about Ethereum blocks using block number, hash, or tag. Integrate securely with MetaMask MCP to access blockchain data without exposing private keys.

Instructions

Fetch information about a block at a block number, hash or tag.

Input Schema

NameRequiredDescriptionDefault
blockHashNoInformation at a given block hash.
blockNumberNoInformation at a given block number.
blockTagNoInformation at a given block tag. Defaults to 'latest'.latest
chainIdNoID of chain to use when fetching data.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "blockHash": { "description": "Information at a given block hash.", "type": "string" }, "blockNumber": { "description": "Information at a given block number.", "format": "int64", "type": "integer" }, "blockTag": { "default": "latest", "description": "Information at a given block tag. Defaults to 'latest'.", "enum": [ "latest", "earliest", "pending", "safe", "finalized" ], "type": "string" }, "chainId": { "description": "ID of chain to use when fetching data.", "type": "number" } }, "type": "object" }
ID: cw2ldcetl4