get-block
Retrieve blockchain block details by specifying a block number, hash, or tag using the MetaMask MCP server. Securely access and manage blockchain data without exposing private keys.
Instructions
Fetch information about a block at a block number, hash or tag.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
blockHash | No | Information at a given block hash. | |
blockNumber | No | Information at a given block number. | |
blockTag | No | Information at a given block tag. Defaults to 'latest'. | latest |
chainId | No | ID 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"
}