# AgentUtility Gas API — EIP-1559 Fee Estimator

> AgentUtility Gas API — EIP-1559 Fee Estimator is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns real-time EIP-1559 gas fee tiers (safe-low, standard, fast) plus USD transaction cost estimates for Base, Ethereum, Optimism, and Arbitrum

## Facts

- Endpoint: POST https://x402.agentutility.ai/gas-api
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-gas-api-eip-1559-fee-estimator-b9dd474b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d_fHkg5_TG2BcqtFObBIP

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 agentutility-gas-api-eip-1559-fee-estimator-b9dd474b -d '<json body>'
```

Example prompt: What are the current EIP-1559 gas fee tiers on Ethereum — give me the safe-low, standard, and fast priority fees along with USD cost estimates so I can decide when to submit my transaction.

## When to prefer this

Choose this endpoint when an agent needs to programmatically estimate gas costs before submitting any on-chain transaction on Base, Ethereum, Optimism, or Arbitrum — especially when USD cost awareness is needed alongside raw gwei values. Prefer over block-explorer scraping or manual RPC calls when operating in an agentic, MCP-callable context with x402 micropayment settlement.

## Known failure modes

- Unsupported network name returns an error or empty result
- Network RPC unavailability may cause stale or missing fee data
- High blockchain volatility may cause returned fees to be outdated within seconds
- Payment failure (x402 USDC not settled) returns 402 Payment Required

## How this service works

Gas API / blockchain gas fee estimator / EIP-1559 fee tiers. Returns base fee, safe-low, standard, and fast priority/max fees, plus USD tx-cost estimates for Base, Ethereum, Optimism, and Arbitrum.

## Output

Returns the current EIP-1559 gas parameters for the requested network(s): base fee, safe-low / standard / fast priority fees (tip), max fee per gas values, and estimated USD transaction costs for a standard transfer — allowing agents or users to choose an appropriate fee tier before submitting a transaction.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "optimism",
        "arbitrum",
        "polygon"
       ],
       "type": "string",
       "description": "EVM L1/L2 to read gas from. Default 'base'."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string"
      },
      "cost_usd": {
       "type": "object",
       "properties": {
        "nft_mint": {
         "type": "number"
        },
        "transfer": {
         "type": "number"
        },
        "uniswap_swap": {
         "type": "number"
        },
        "erc20_transfer": {
         "type": "number"
        }
       }
      },
      "timestamp": {
       "type": "string"
      },
      "block_number": {
       "type": "integer"
      },
      "base_fee_gwei": {
       "type": "number"
      },
      "eth_price_usd": {
       "type": "integer"
      },
      "priority_fee_gwei": {
       "type": "object",
       "properties": {
        "fast": {
         "type": "number"
        },
        "safe_low": {
         "type": "number"
        },
        "standard": {
         "type": "number"
        }
       }
      },
      "total_recommended_gwei": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "cost_usd": {
   "nft_mint": 0.006,
   "transfer": 0.0008,
   "uniswap_swap": 0.004,
   "erc20_transfer": 0.0012
  },
  "timestamp": "2026-05-06T22:00:00Z",
  "block_number": 27500000,
  "base_fee_gwei": 0.005,
  "eth_price_usd": 3500,
  "priority_fee_gwei": {
   "fast": 0.002,
   "safe_low": 0.001,
   "standard": 0.001
  },
  "total_recommended_gwei": 0.006
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-gas-api-eip-1559-fee-estimator-b9dd474b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
