eth_getProtocolVersion
Retrieve the current Ethereum protocol version from a node to verify client compatibility and supported features. Specify network (default mainnet) for targeted queries.
Instructions
Returns the current Ethereum protocol version used by the node. Useful for checking client compatibility and supported features.
Args:
network (string, optional): Ethereum network to query, defaults to 'mainnet'
Returns:
Hex-encoded string representing the protocol version number (e.g., '0x41' for version 65)
Examples:
"Get mainnet protocol version": {}
"Get Sepolia protocol version": { "network": "sepolia" }
Errors:
InternalError: When Infura API is unavailable or method not supported
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | The Ethereum network to query, e.g., 'mainnet' or 'sepolia'. | mainnet |
| response_format | No | Output format: 'json' for structured data, 'markdown' for human-readable. | json |