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 Hash
AI-generatedSummary
Retrieves the number of transactions contained in a specific Ethereum block identified by its hash.
Inputs
- network — The network to query (mainnet or sepolia). Defaults to mainnet.
- block_hash (required) — The hash of the Ethereum block (0x-prefixed hex).
Output shape
A single data item containing the transaction count for the specified block.
The result is a JSON object where the transaction count is typically a stringified integer (e.g., 15).
Examples
Example 1: Check how many transactions were included in block 0x12345abc...
Operation: Get Block Tx Count by Hash, Block Hash: 0x12345abc...