{"slug":"agenttools-hub-vercel-app-api-v1-crypto-gas-fee-calculator-c5c8fa","title":"Calculate a transaction's gas fee","host":"agenttools-hub.vercel.app","method":"GET","resource":"https://agenttools-hub.vercel.app/api/v1/crypto/gas-fee-calculator","category":"market","description":"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.","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":239,"reported_calls_30d":3,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"ethPriceUsd":3000,"gasUnits":21000,"gweiPrice":10},"type":"http"},"output_schema":{"$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"},"history":[{"day":"2026-10-02","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":239,"error":null}],"description_full":"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.","last_updated":"2026-10-02T00:10:55.505Z","schemes":["exact"]}