Skip to navigation

eth_getBlockTransactionCountByHash

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

⚡ Compute Units: 20 CU

Request

This endpoint expects an object.
blockHashstringRequiredformat: "^0x[0-9a-fA-F]{64}$"

32-byte hash of a block

Response

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