# agent402.tools Gas Price Estimator

> agent402.tools Gas Price Estimator is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns current gas price in gwei and wei for a specified EVM blockchain network (Base, Polygon, Arbitrum, Optimism, or Ethereum)

## Facts

- Endpoint: GET https://agent402.tools/api/gas-estimate
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-gas-price-estimator-a77ba31f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5koLu7R9wiNwDRhozX8V3

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-gas-price-estimator-a77ba31f
```

Example prompt: Before I submit this transaction, can you check the current gas price on Arbitrum so I know how much to budget?

## When to prefer this

Use this endpoint when an agent needs to budget or gate a blockchain transaction by checking real-time gas prices before submission. Ideal for any workflow that involves EVM-compatible chains (Base, Polygon, Arbitrum, Optimism, Ethereum) where cost estimation is required before executing a smart contract call or token transfer.

## Known failure modes

- Invalid or unsupported network name returns an error — only base, polygon, arbitrum, optimism, ethereum are accepted
- Network RPC unavailable may cause a timeout or upstream error
- Payment failure (x402) if the 0.002 USDC fee is not supplied correctly

## How this service works

Current gas price (gwei and wei) on Base, Polygon, Arbitrum, Optimism, Ethereum, Monad, Celo, Avalanche, Sei, or Robinhood Chain - for an agent budgeting a transaction. Read-only. ?network=base

## Output

Returns the current gas price for the requested EVM network expressed in both gwei (human-readable) and wei (machine-precision), along with the network name. This gives an agent everything it needs to estimate transaction costs before committing to an on-chain operation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "network": {
       "type": "string",
       "description": "chain: base | polygon | arbitrum | optimism | ethereum | monad | celo | avalanche | sei | robinhood (default base)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "network",
      "gasPriceGwei",
      "gasPriceWei"
     ],
     "properties": {
      "network": {
       "type": "string"
      },
      "gasPriceWei": {
       "type": "string"
      },
      "gasPriceGwei": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "base",
  "gasPriceWei": "5100000",
  "gasPriceGwei": "0.0051"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-gas-price-estimator-a77ba31f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
