Skip to main content
Returns the number of transactions in a block matching the given block number.
Since Denim, Base produces a canonical block every 200ms and Flashblocks are retired. The "pending" tag is still accepted, but it no longer returns Flashblocks preconfirmation state. Use "latest" for the newest canonical block. See Migrate From Flashblocks.

Parameters

string
required
Block number in hex, or "latest", "pending", "safe", "finalized", "earliest".

Returns

string
The number of transactions in the block as a hexadecimal integer.

Example