Alchemy Logo

eth_getBlockTransactionCountByHash

POST
/{apiKey}

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

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

Block hashstringformat: "^0x[0-9a-f]{64}$"required

The hash of the block.

Responses

200

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

Was this page helpful?