# Plainchain Gas Price Oracle

> Plainchain Gas Price Oracle is a paid API for AI agents from plainchain.appin60.com, paid per call via x402, $0.001042/call, status unknown (last checked 2026-10-14).

Returns current gas price, base fee, priority fee, and cost estimates for common transaction types on Base, Arbitrum, Ethereum, or Optimism

## Facts

- Endpoint: GET https://plainchain.appin60.com/v1/gas?utm_source=zero.xyz
- Price: $0.001042/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/plainchain-gas-price-oracle-bd71bb87
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k88JjiaakGlS0ZRSgDYLE

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 plainchain-gas-price-oracle-bd71bb87
```

Example prompt: What are the current gas fees on Base — give me the base fee, priority fee, and how much a DEX swap and a simple ETH transfer would cost right now in both ETH and USD.

## When to prefer this

Use this endpoint when an AI agent needs real-time gas fee data across Base, Arbitrum, Ethereum, or Optimism without setting up API keys — ideal for cost estimation before submitting transactions, comparing fees across chains, or deciding when to execute a transaction. Pay-per-call x402 pricing ($0.001) makes it cost-effective for low-frequency lookups.

## Known failure modes

- Unsupported chain name or chain ID returns an error
- Network congestion or RPC issues may cause stale or delayed data
- Missing chain parameter defaults to Base — may surprise callers expecting a different chain
- x402 payment failure if USDC balance is insufficient on Base

## How this service works

Gas, balances, token data, address type, approvals, transaction decoding, x402 receipt verification and verifiable randomness on Base, Arbitrum, Ethereum and Optimism. No API key: pay $0.001-$0.01 per call in USDC on Base via x402.

## Output

Returns a JSON object with: current block number, chain name and ID, ETH/USD price, base fee in Gwei, gas price in Gwei, priority fee in Gwei, and USD/ETH cost estimates for three common transaction types — ETH transfer (21k gas), ERC-20 transfer (65k gas), and DEX swap (180k gas).

## 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",
       "description": "base (default), arbitrum, ethereum or optimism; chain ids 8453, 42161, 1, 10 also work"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "block": 36581662,
  "chain": "Base",
  "ethUsd": 2527.2,
  "chainId": 8453,
  "estimates": {
   "dexSwap": {
    "eth": 0.00000108,
    "gas": 180000,
    "usd": 0.00273
   },
   "ethTransfer": {
    "eth": 1.26e-7,
    "gas": 21000,
    "usd": 0.000318
   },
   "erc20Transfer": {
    "eth": 3.9e-7,
    "gas": 65000,
    "usd": 0.000986
   }
  },
  "baseFeeGwei": 0.005,
  "gasPriceGwei": 0.006,
  "priorityFeeGwei": 0.001
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/plainchain-gas-price-oracle-bd71bb87/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from plainchain.appin60.com](https://www.zero.xyz/host/plainchain.appin60.com/llms.txt)
