> For the complete documentation index, see [llms.txt](https://docs.dovu.market/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dovu.market/offset.md).

# Offset

Fetch the amount of DOVU tokens that a given address needs to buy to offset its carbon footprint.

## Get Offset

<mark style="color:blue;">`GET`</mark> `https://api.dovu.earth/api/addresses/{address}/offset`

Fetch the amount of DOVU tokens that a given address needs to buy to offset its carbon footprint.

#### Path Parameters

| Name    | Type   | Description      |
| ------- | ------ | ---------------- |
| address | string | Ethereum address |

{% tabs %}
{% tab title="200 Successful" %}

```
{
    "data": {
        "account": "0xE284bE6e5Cb424a439D42FAfDd8bbA456175957a",
        "address_carbon_emissions": 287.1915241960503,
        "address_gas_used": 999277,
        "address_transaction_count": 7,
        "dov_per_kg": 0.1624475,
        "dov_price": 0.01039664,
        "dov_to_buy": 1767.9036254546872
    }
}
```

{% endtab %}

{% tab title="422 Validation error" %}

```
{
    "errors": {
        "address": [
            "Not a valid Ethereum address format."
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### Try it out

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

```bash
curl https://api.calculator.dovu.earth/api/addresses/0xE284bE6e5Cb424a439D42FAfDd8bbA456175957a/offset
```

{% endtab %}

{% tab title="JS" %}

```
fetch('https://api.calculator.dovu.earth/api/addresses/0xE284bE6e5Cb424a439D42FAfDd8bbA456175957a/offset')
  .then(response => response.json())
  .then(data => console.log(data));
```

{% endtab %}
{% endtabs %}
