# Base Gas Oracle – Current Gas Price & Transaction Cost Estimator

> Base Gas Oracle – Current Gas Price & Transaction Cost Estimator is a paid API for AI agents from x402-services-production.up.railway.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Returns the current gas price on Base plus estimated ETH and USD costs for transfer, swap, and mint operations — no input required.

## Facts

- Endpoint: POST https://x402-services-production.up.railway.app/api/crypto/gas
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-gas-oracle-current-gas-price-transaction-cost-estimator-a866935d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S7WF4MLbTiJTKMPcw8lwp

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 base-gas-oracle-current-gas-price-transaction-cost-estimator-a866935d -d '<json body>'
```

Example prompt: Before you execute anything onchain, check the current Base gas price and tell me how much it'll cost in ETH and USD to do a swap right now.

## When to prefer this

Use this endpoint when an AI agent needs to budget or gate onchain transactions on Base before execution — specifically when you want pre-computed USD cost estimates for transfers, swaps, or mints without doing the gas math yourself. Prefer this over raw RPC calls when you need both ETH and USD cost breakdowns in a single, no-input call.

## Known failure modes

- RPC node unavailable — gas price fetch fails with a 5xx error
- Base network congestion may cause momentarily stale or spiking gas readings
- USD conversion may lag if external price feed is delayed
- Payment of $0.003 USDC not provided or rejected — returns 402 Payment Required

## How this service works

Live Base gas oracle: current gas price plus estimated cost (ETH & USD) for a transfer, swap, or mint. Send {} — no input needed. Agents budget transactions before acting.

## Output

Returns the live gas price on Base along with pre-calculated ETH and USD cost estimates for three common transaction types: a standard token transfer, a DEX swap, and an NFT mint. Allows agents to make cost-aware decisions before submitting any onchain transaction.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "_": {
   "type": "string",
   "description": "No parameters required"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-gas-oracle-current-gas-price-transaction-cost-estimator-a866935d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-services-production.up.railway.app](https://www.zero.xyz/host/x402-services-production.up.railway.app/llms.txt)
