Alchemy Logo

eth_getBlockTransactionCountByNumber

POST
/{apiKey}

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

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

Block number or tagstring or enumrequired

The block number or special tags like 'latest', 'earliest', or 'pending'.

Responses

200

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

Was this page helpful?