---
updatedAt: 2026-03-21T18:18:44.000Z
agentTools:
  projectIndex: https://docs.evergonlabs.com/llms.txt
---

# Estimate gas

Checks given transaction data whether it can be executed and returns estimated gas consumption

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "General API",
    "description": "Utility APIs",
    "version": "0.11.2"
  },
  "servers": [
    {
      "url": "https://protocol-api.tmi.evergonlabs.com"
    }
  ],
  "paths": {
    "/estimateGas": {
      "get": {
        "operationId": "getEstimateGas",
        "summary": "Estimate gas",
        "description": "Checks given transaction data whether it can be executed and returns estimated gas consumption",
        "tags": [
          "General"
        ],
        "responses": {
          "200": {
            "description": "Returns estimated gas or estimation error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "value"
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "chainId",
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "11155111"
                },
                {
                  "type": "string",
                  "const": "84532"
                },
                {
                  "type": "string",
                  "const": "31337"
                }
              ]
            },
            "required": true
          },
          {
            "in": "query",
            "name": "data",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    }
  }
}
```