# watch\_getStatsByDay

**Parameters**

* `QUANTITY` - the unix timestamp

{% hint style="info" %}
To convert the unix timestamp you can use <https://www.epochconverter.com/>
{% endhint %}

```javascript
params: [
    1644419586,
]
```

**Returns**

`Object` - A block object with the following fields, or null when no block was found:

* transactionCount: QUANTITY - number of transactions per day
* averageGasPrice: QUANTITY,  - average gas price per day.
* totalGasUsed: QUANTITY, - total gas used per day
* uncleBlockReward: QUANTITY, - uncle block reward by day
* minersReward: QUANTITY, - miner's reward per day
* blockCount: QUANTITY, - number of blocks per day

{% hint style="info" %}
If you need data with a different range, ask us by mail <support@watchdata.io>
{% endhint %}

**Request example**

{% tabs %}
{% tab title="Curl" %}

```bash
curl https://ethereum.api.watchdata.io/node/jsonrpc?api_key=your_api_key
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"watch_getStatsByDay","params":[1645170803"],"id":0}'
```

{% endtab %}

{% tab title="Postman" %}

```json
URL: https://ethereum.api.watchdata.io/node/jsonrpc?api_key=your_api_key
RequestType: POST
Body: 
{
    "jsonrpc":"2.0",
    "method":"watch_getStatsByDay",
    "params":[1645170803],
    "id":0
}
```

{% endtab %}
{% endtabs %}

**Result**

```javascript
{
    "id": 0,
    "jsonrpc": "2.0",
    "result": {
        "transactionCount": 1252754,
        "averageGasPrice": 99672209984.26283,
        "totalGasUsed": 99200040530,
        "uncleBlockReward": 676500000000000000000,
        "minersReward": 13594383283569909503493,
        "blockCount": 6418
    }
}
```
