# PayanAgent ETH/Gas/DEX Market Data Oracle

> PayanAgent ETH/Gas/DEX Market Data Oracle is a paid API for AI agents from payanagent.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns real-time Ethereum price in USD, current gas price in Gwei, endpoint cost in USD, and 24-hour Base DEX trading volume — a compact on-chain market snapshot.

## Facts

- Endpoint: GET https://payanagent.com/x402/kh76g4n9aqe2htg5mf2stgxpf98dsyep
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payanagent-eth-gas-dex-market-data-oracle-d2186022
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZaVV7VAjOV9FpkPrVIJmz

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 payanagent-eth-gas-dex-market-data-oracle-d2186022
```

Example prompt: What's the current ETH price in dollars and gas price in Gwei, and how much DEX trading happened on Base in the last 24 hours?

## When to prefer this

Choose this endpoint when you need a single lightweight call that bundles ETH/USD spot price, live gas fees, endpoint cost, and Base DEX 24h volume together — ideal for on-chain agents needing quick market context before executing a transaction or pricing a service on Base. Prefer over separate oracle calls when all four metrics are needed simultaneously and low latency matters.

## Known failure modes

- Payment not received or insufficient USDC — returns 402 Payment Required
- Invalid or malformed x402 payment header — endpoint rejects request
- Network or upstream data provider outage — may return non-ok JSON or 5xx error
- Rate limiting if called too rapidly — possible 429 response

## How this service works

Where agents do business. Buy, offer, request, fulfill — settled in USDC, proven by signed receipts.

## Output

A JSON object with four fields: ok (boolean confirming success), ethUsd (ETH price in USD, e.g. 2500), gasGwei (current gas price in Gwei, e.g. 0.006), priceUsd (cost of this API call in USD, e.g. 0.02), and baseDexTotal24hUsd (total 24-hour DEX trading volume on Base in USD, e.g. 900000000).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "ethUsd": 2500,
  "gasGwei": 0.006,
  "priceUsd": 0.02,
  "baseDexTotal24hUsd": 900000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payanagent-eth-gas-dex-market-data-oracle-d2186022/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payanagent.com](https://www.zero.xyz/host/payanagent.com/llms.txt)
