# Eth\_getBlockTransactionCountByHash

## Get Transaction Count by Block Hash

> Returns the number of transactions contained in the block with the given hash.<br>

```json
{"openapi":"3.0.0","info":{"title":"Ethereum JSON-RPC","version":"1.0.0"},"servers":[{"url":"https://zksync.nownodes.io"}],"security":[{"api-keyAuth":[]}],"components":{"securitySchemes":{"api-keyAuth":{"type":"apiKey","in":"header","name":"api-key"}}},"paths":{"/":{"post":{"tags":["eth_getBlockTransactionCountByHash"],"summary":"Get Transaction Count by Block Hash","operationId":"ethGetBlockTransactionCountByHash","description":"Returns the number of transactions contained in the block with the given hash.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params","id"],"properties":{"jsonrpc":{"type":"string","description":"JSON-RPC version"},"method":{"type":"string","description":"JSON-RPC method name"},"params":{"type":"array","minItems":1,"maxItems":1,"description":"Array containing a single parameter:\n  - Block hash as a hex string (32 bytes with 0x prefix)\n","items":{"type":"string"}},"id":{"type":"integer","description":"Request ID"}}}}}},"responses":{"200":{"description":"Number of transactions in the block","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","description":"JSON-RPC version"},"id":{"type":"integer","description":"Same ID as in request"},"result":{"type":"string","description":"Number of transactions in the block, returned as a hex string"}}}}}}}}}}}
```
