getBlockNumber
Retrieve the current block number from Ethereum networks using the MCP Ethers Wallet server. Specify a chain ID or custom RPC URL for specific network queries.
Instructions
Get the current block number
Input Schema
Name | Required | Description | Default |
---|---|---|---|
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 getSupportedNetworks to get a list of supported networks. |