teckel Ethereum icon

teckel Ethereum

Query the Ethereum blockchain via the teckel platform

Get Block Tx Count by Number

AI-generated

Summary

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

Links

Discussion