# Base Gas Conditions

> Base Gas Conditions is a paid API for AI agents from ca-tax-api-mainnet.lxtap.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-24).

Returns current Base network gas conditions including block number, base fee, gas price, priority fee in gwei, and estimated ETH and USD costs for ETH and ERC-20 transfers.

## Facts

- Endpoint: GET https://ca-tax-api-mainnet.lxtap.workers.dev/base/gas?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-gas-conditions-e8bcff6e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ArG5oIWcgUwEr6m7SBrYR

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-conditions-e8bcff6e
```

Example prompt: What are the current gas conditions on Base right now — base fee, gas price, priority fee, and how much would it cost in USD to do a simple ETH transfer and an ERC-20 transfer?

## When to prefer this

Choose this endpoint when you need real-time Base network gas conditions and cost estimates denominated in both ETH and USD. It is ideal for pre-flight transaction cost checks, gas optimization decisions, or monitoring Base network activity. Prefer this over generic Ethereum gas APIs when you are specifically operating on the Base L2 network.

## Known failure modes

- RPC node unavailable or rate-limited — may return 5xx or stale data
- Chainlink ETH/USD feed temporarily unavailable — USD estimates may be missing or null
- x402 payment failure — returns 402 if USDC payment is not provided or invalid
- Network congestion may cause slightly delayed block data

## How this service works

Pay-per-call data for AI agents, paid in USDC on Base with x402: token risk checks (rug check) on Base, Ethereum, Arbitrum, Optimism, Polygon and Solana, onchain reads (balances, transactions, gas, contracts, NFTs, whale trades, new pools, ENS and Basenames), ECB exchange rates, and Canadian sales tax and business days.

## Output

A JSON object with the current Base block number, base fee in gwei, gas price in gwei, priority fee in gwei, estimated cost of a standard ETH transfer in both ETH and USD, and estimated cost of an ERC-20 transfer in both ETH and USD (using Chainlink ETH/USD price feed).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Excludes Base's L1 data fee, which adds a small amount per transaction.",
  "chain": "base",
  "blockTime": "2026-10-22T15:49:57.000Z",
  "nativeUsd": 2388.88,
  "baseFeeGwei": "0.005",
  "blockNumber": 52947425,
  "gasPriceGwei": "0.006",
  "nativeSymbol": "ETH",
  "estimatedCost": {
   "erc20Transfer": {
    "usd": 0.0009317,
    "native": "0.00000039"
   },
   "nativeTransfer": {
    "usd": 0.000301,
    "native": "0.000000126"
   }
  },
  "maxPriorityFeeGwei": "0.001"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-gas-conditions-e8bcff6e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ca-tax-api-mainnet.lxtap.workers.dev](https://www.zero.xyz/host/ca-tax-api-mainnet.lxtap.workers.dev/llms.txt)
