# x402-defi-intel Gas Price Oracle

> x402-defi-intel Gas Price Oracle is a paid API for AI agents from cryptodefidataintel-production.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns real-time cross-chain gas prices, base fees, and cost trend signals to help agents choose the cheapest chain for transaction execution.

## Facts

- Endpoint: GET https://cryptodefidataintel-production.up.railway.app/api/gas
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-defi-intel-gas-price-oracle-ecfe3853
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C8Me8aXEU5zPDnTzse6rU

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 x402-defi-intel-gas-price-oracle-ecfe3853
```

Example prompt: What are the current gas prices across all chains — which one is cheapest right now, and is the trend going up or down?

## When to prefer this

Use this endpoint when an AI agent needs to select the optimal chain for a DeFi transaction based on cost, monitor gas conditions before executing swaps or bridges, or provide users with real-time cross-chain gas comparisons. Prefer over generic block explorer APIs because it returns pre-analyzed trend signals and cheapest-chain recommendations in a single call.

## Known failure modes

- Invalid chain identifier returns no matching data
- RPC node unavailability may cause stale or missing data for a specific chain
- Confidence score below threshold may indicate unreliable gas estimates
- Network congestion may cause rapid changes that make snapshot data quickly outdated

## How this service works

Crypto-agent toolkit: cross-chain DeFi intelligence + execution helpers + retrieval for agents. 16 endpoints: funding, open interest, long/short, token-safety, yield, prices, gas, tx-simulate, approval-check, bridge-quote, governance-search, lending, liquidations, protocol-search, swap-quote, token-resolve. Pay-per-call via x402.

## Output

Returns an array of chain-level gas data including base fee in Gwei, gas price in Gwei, and trend direction (flat/rising/falling), plus a human-readable insight naming the cheapest chain, a signal string, data sources, and a confidence score.

## 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",
     "required": [],
     "properties": {
      "chain": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "chain": "base",
    "trend": "flat",
    "baseFeeGwei": 0.01,
    "gasPriceGwei": 0.02
   }
  ],
  "signal": "eth_gas_normal_cheapest_base",
  "insight": "Cheapest chain right now is base.",
  "sources": [
   "public-rpc"
  ],
  "confidence": 0.85
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-defi-intel-gas-price-oracle-ecfe3853/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cryptodefidataintel-production.up.railway.app](https://www.zero.xyz/host/cryptodefidataintel-production.up.railway.app/llms.txt)
