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
Get Block Tx Count by Number
AI-generatedSummary
Queries the teckel Ethereum API to retrieve the number of transactions contained in a specific block by its number.
Inputs
- network — The Ethereum network to query. Defaults to 'mainnet'. Options are 'mainnet' or 'sepolia'.
- block — The block identifier. Can be a specific block number (integer) or one of: latest, earliest, pending, safe, finalized. Defaults to 'latest'.
Output shape
A single item containing the transaction count as a JSON object.
The response is returned as a JSON object with a 'result' key containing the integer count.
Examples
Example 1: Fetch the transaction count of the latest block on Ethereum Mainnet
Operation: Get Block Tx Count by Number, Network: mainnet, Block: latest
Example 2: Retrieve the transaction count for block 15,000,000
Operation: Get Block Tx Count by Number, Network: mainnet, Block: 15000000
Example 3: Check the transaction count for the latest block on Sepolia testnet
Operation: Get Block Tx Count by Number, Network: sepolia, Block: latest