# watch\_getBlockNumberByTimestamp

**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**

QUANTITY - number of block

**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_getBlockNumberByTimestamp","params":[1644419586"],"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_getBlockNumberByTimestamp",
    "params":[1645170803],
    "id":0
}
```

{% endtab %}
{% endtabs %}

**Result**

```javascript
{
    "id": 0,
    "jsonrpc": "2.0",
    "result": 14172626
}
```
