๐ Get transaction count in block by hash
Code samples
GET /api/v1/eth/block/hash/{blockHash}/transactions/count
curl 'https://settla.net/api/v1/eth/block/hash/0x64b665414720230df4845b01ff7b9a5c7a5c5ad89ef398eb82ecb8e8138a82a8/transactions/count' \
-H 'X-API-Key: $SETTLA_API_KEY' \
-H 'Accept: application/json'
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": "0x129"
}
๐ 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 (0x129 = 297 transactions). |