getBlockDetails
Retrieve detailed blockchain data for a specific block using a block number or 'latest' tag. Works with custom RPC URLs or named networks, providing essential Ethereum network insights.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
blockTag | Yes | The block number or the string 'latest' | |
chainId | No | Optional. The chain ID to use. If provided with a named network and they don't match, the RPC's chain ID will be used. | |
provider | No | Optional. Either a network name or custom RPC URL. Use getAllNetworks to see available networks and their details, or getNetwork to get info about a specific network. You can use any network name returned by these tools as a provider value. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"blockTag": {
"description": "The block number or the string 'latest'",
"type": [
"string",
"number"
]
},
"chainId": {
"description": "Optional. The chain ID to use. If provided with a named network and they don't match, the RPC's chain ID will be used.",
"type": "number"
},
"provider": {
"description": "Optional. Either a network name or custom RPC URL. Use getAllNetworks to see available networks and their details, or getNetwork to get info about a specific network. You can use any network name returned by these tools as a provider value.",
"type": "string"
}
},
"required": [
"blockTag"
],
"type": "object"
}