Skip to navigation

eth_getBlockTransactionCountByNumber

Returns the number of transactions in a block matching the given block number.

⚡ Compute Units: 20 CU

Request

This endpoint expects an object.
blockIdentifierenum or stringRequired
Block number, or one of "latest", "earliest", "pending", "finalized", "safe"

Response

The number of transactions in the block (hex-encoded), or null if the block is unknown.