Actions20
- Block Number
- Chain ID
- Gas Price
- Get Balance
- Get Block by Hash
- Get Block by Number
- Get Block Tx Count by Hash
- Get Block Tx Count by Number
- Get Code
- Get My Balance
- Get Transaction by Block Hash and Index
- Get Transaction by Block Number and Index
- Get Transaction by Hash
- Get Transaction Count
- Get Transaction Receipt
- Get Uncle Count by Block Hash
- Get Uncle Count by Block Number
- Help
- Peer Count
- Syncing
Block Number
AI-generatedSummary
Queries the Ethereum blockchain for the current block number on the specified network.
Inputs
- network — Select the Ethereum network to query. Defaults to 'mainnet'.
Output shape
A list of items, each containing the most recent block number as a JSON object.
The response is a JSON object containing the block number (e.g., '18,921,234').
Examples
Example 1: Check the latest Mainnet block number.
Select Mainnet as the network.