ToolAssay

Estimate the gas a transaction will consume via eth_estimateGas before signing i

Estimate the gas a transaction will consume via eth_estimateGas before signing it

Answeringour last check, 2026-11-26
7 of 7checks answered this week
748 msmedian answer time
$0.004listed price per call
$0.004price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://api.onesource.io/api/chain/estimate-gas

CategoryEverything else
Provider hostapi.onesource.io
Networkseip155:8453
Payment schemesbatch-settlement, exact
Self-reported calls, 30 days206 from 206 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-26 valid payment request 402$0.004 748 ms
2026-11-25 valid payment request 402$0.004 750 ms
2026-11-24 valid payment request 402$0.004 750 ms
2026-11-23 valid payment request 402$0.004 747 ms
2026-11-22 valid payment request 402$0.004 748 ms
2026-11-21 valid payment request 402$0.004 745 ms
2026-11-20 valid payment request 402$0.004 749 ms
2026-11-19 valid payment request 402$0.004 747 ms
2026-11-18 valid payment request 402$0.004 748 ms
2026-11-17 valid payment request 402$0.004 748 ms
2026-11-16 valid payment request 402$0.004 748 ms
2026-11-15 valid payment request 402$0.004 746 ms
2026-11-14 valid payment request 402$0.004 749 ms
2026-11-13 valid payment request 402$0.004 749 ms
2026-11-12 valid payment request 402$0.004 746 ms
2026-11-11 valid payment request 402$0.004 748 ms
2026-11-10 valid payment request 402$0.004 748 ms
2026-11-09 valid payment request 402$0.004 746 ms
2026-11-08 valid payment request 402$0.004 747 ms
2026-11-07 valid payment request 402$0.004 749 ms
2026-11-06 valid payment request 402$0.004 762 ms
2026-11-05 valid payment request 402$0.004 748 ms
2026-11-04 valid payment request 402$0.004 759 ms
2026-11-03 valid payment request 402$0.004 766 ms
2026-11-02 valid payment request 402$0.004 749 ms
2026-11-01 valid payment request 402$0.004 749 ms
2026-10-31 valid payment request 402$0.004 752 ms
2026-10-29 valid payment request 402$0.004 751 ms

Example input (from the provider)

{
  "body": {
    "data": "0x00",
    "to": "0xdac17f958d2ee523a2206206994597c13d831ec7"
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "properties": {
            "data": {
              "pattern": "^0x([a-fA-F0-9]{2})*$",
              "type": "string"
            },
            "from": {
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "to": {
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "value": {
              "pattern": "^0x[a-fA-F0-9]+$",
              "type": "string"
            }
          },
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "data": {
              "description": "Endpoint-specific response payload",
              "properties": {
                "gas": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "error": {
              "properties": {
                "code": {
                  "type": "integer"
                },
                "message": {
                  "type": "string"
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "meta": {
              "properties": {
                "cost_usdc": {
                  "type": "string"
                },
                "endpoint": {
                  "type": "string"
                },
                "payment_chain": {
                  "type": "string"
                },
                "payment_token": {
                  "type": "string"
                },
                "request_id": {
                  "type": "string"
                }
              },
              "required": [
                "endpoint",
                "request_id"
              ],
              "type": "object"
            }
          },
          "required": [
            "data",
            "meta"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON