๐ Get transaction count in block by hash
Code samples
GET /api/v1/eth/block/hash/{blockHash}/transactions/count
Returns the number of transactions in a block identified by hash using eth_getBlockTransactionCountByHash.
๐ ๏ธ Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| blockHash | path | string | true | Ethereum block hash. |
Example responses
200 Response
{
"transactionCount": "0x10"
}
๐ Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Number of transactions in the block | Inline |
| 500 | Internal Server Error | Could not connect to ETH node | None |
๐ Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป transactionCount | string | false | none | Transaction count as hex QUANTITY. |