# Gas estimation

#### **Gas Estimation for Gasless Quotes**

To retrieve the gas estimation for a gasless quote, use the following endpoint:

**Endpoint:**

`/v1/gasless/estimate`

***

#### **Description**

This endpoint provides an estimate of the gas costs associated with executing a gasless quote. It helps you understand the gas fee that will be covered by the system on behalf of the user.

***

#### **Usage Example**

**Request**:

```bash
POST /v1/gasless/estimate
Content-Type: application/json
{
  "parameters": {
    // Add necessary parameters for estimation
  }
}
```

**Success response:**&#x20;

```
1137450 // estimate of the gas costs associated with executing a gasless quote
```

**Error Response**:

```json
{
    "status": 500,
    "message": "Internal Server Error",
    "requestId": "6b130836-3b52-4035-8399-464cdd78bc2f",
    "error": {
        "error": "Internal Server Error",
        "description": "execution reverted: ERC20: transfer amount exceeds balance\n",
        "statusCode": 500,
        "meta": []
    }
}
```

***

#### **Key Points**

* **Gas Coverage**: The gas fees are paid by the system for gasless trades, and this endpoint helps estimate the cost.
* **Parameters**: Ensure all required parameters are included in the request for accurate estimation.

For further details, refer to the full API documentation.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.unizen.io/gasless-trades/gas-estimation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
