# AmanChain EVM Gas Price Feed

> AmanChain EVM Gas Price Feed is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.001244/call, status unknown (last checked 2026-09-14).

Returns live gas prices on Base and Ethereum networks in both gwei and USD, paid per call via x402 micropayment in USDC.

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-gas-price
- Price: $0.001244/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-evm-gas-price-feed-31a3020d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3BTqWVtCG2Sbrrfs_fGuV

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 amanchain-evm-gas-price-feed-31a3020d -d '<json body>'
```

Example prompt: What are the current gas prices on Ethereum and Base right now — give me both in gwei and USD so I can decide whether to submit my transaction.

## When to prefer this

Choose this endpoint when you need real-time EVM gas prices for Base or Ethereum without requiring an API key or account — it is billed per call via x402 USDC micropayment, making it suitable for infrequent or agent-driven lookups. Prefer it over general crypto data aggregators when you specifically need gwei and USD gas cost data from an on-chain node rather than an off-chain oracle.

## Known failure modes

- Invalid or missing serviceId returns an error response
- Malformed JSON request body causes a 400-level error
- x402 payment failure or insufficient USDC balance prevents the call from completing
- Network or node connectivity issues may cause timeouts or 5xx errors
- Stale data if the AmanChain node is momentarily out of sync with the chain tip

## How this service works

Live gas price on Base and Ethereum in gwei with USD conversion; gas fee API. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-gas-price","request":"<input>"}.

## Output

Returns the current gas price for Base and Ethereum networks expressed in gwei and USD equivalent, sourced from live consensus state and real block/pool data by the AmanChain node.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-evm-gas-price-feed-31a3020d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from amanchain-relay.gitajhd.workers.dev](https://www.zero.xyz/host/amanchain-relay.gitajhd.workers.dev/llms.txt)
