# AgenticFi Gas Prices API

> AgenticFi Gas Prices API is a paid API for AI agents from defi-api.agenticfi.wtf, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns current gas prices for a specified blockchain network (e.g., Ethereum, Base, Arbitrum)

## Facts

- Endpoint: GET https://defi-api.agenticfi.wtf/api/gas/prices
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenticfi-gas-prices-api-efc3e57a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KSui8Jo3JpAvHyvgGRjJr

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 agenticfi-gas-prices-api-efc3e57a
```

Example prompt: What are the current gas prices on Base right now? I want to know if it's a good time to execute a swap.

## When to prefer this

Use this endpoint when an AI agent needs real-time gas price data to inform DeFi decisions such as swap timing, transaction cost estimation, or workflow automation on EVM-compatible chains like Ethereum, Base, or Arbitrum. Prefer this over static lookups when freshness matters for cost-sensitive on-chain operations.

## Known failure modes

- Invalid or unsupported chain name returns an error
- Network connectivity issues to the on-chain data source
- Payment failure via x402 if USDC balance is insufficient
- Rate limiting or quota exceeded
- Chain parameter typo yields no results or error

## How this service works

Gas prices across EVM chains - fast, standard, slow in gwei

## Output

Returns current gas price data for the specified blockchain network, including fee estimates (likely in gwei or native fee units) relevant to transaction cost planning on chains like Ethereum, Base, or Arbitrum.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "base"
  }
 }
}
```

## 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": {
      "chain": {
       "type": "string",
       "title": "chain (optional)",
       "description": "Optional. Chain name (ethereum, base, arbitrum, etc.) Examples: base, ethereum, arbitrum"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenticfi-gas-prices-api-efc3e57a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-api.agenticfi.wtf](https://www.zero.xyz/host/defi-api.agenticfi.wtf/llms.txt)
