eth_getBlockTransactionCountByNumber

Returns the number of transactions in a block matching the given block number. ⚡ Compute Units: [20 CU](https://docs.conduit.xyz/rpc-nodes/information/compute-units)

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.