ToolAssay

Calculate a transaction's gas fee

Calculate a transaction's gas fee: gas units × gas price (gwei) gives the ETH cost, multiplied by the ETH price for USD. Exact BigInt math for the wei amounts. Use this when an agent needs to transaction cost in ETH and USD from gas × gwei.

Answeringour last check, 2026-10-02
1 of 1checks answered this week
239 msmedian answer time
$0.001listed price per call
$0.001price 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

GET https://agenttools-hub.vercel.app/api/v1/crypto/gas-fee-calculator

CategoryMarket data
Provider hostagenttools-hub.vercel.app
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days3 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-10-02 valid payment request 402$0.001 239 ms

Example input (from the provider)

{
  "method": "GET",
  "queryParams": {
    "ethPriceUsd": 3000,
    "gasUnits": 21000,
    "gweiPrice": 10
  },
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "ethPriceUsd": {
              "description": "ETH price (USD)",
              "type": "number"
            },
            "gasUnits": {
              "description": "Gas units",
              "type": "number"
            },
            "gweiPrice": {
              "description": "Gas price (gwei)",
              "type": "number"
            }
          },
          "required": [
            "gasUnits",
            "gweiPrice",
            "ethPriceUsd"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON