# Polygon Gas Price Oracle

> Polygon Gas Price Oracle is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Returns current gas price, base fee, priority fee, and estimated transfer cost on the Polygon PoS network

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/polygon/gas?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polygon-gas-price-oracle-728d0c59
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QWjUqGwYtUGy71NlRUZh_

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 polygon-gas-price-oracle-728d0c59
```

Example prompt: What are the current gas fees on Polygon — give me the base fee, priority fee, and how much a simple transfer would cost in POL?

## When to prefer this

Use this endpoint when you need real-time Polygon PoS gas fee data (base fee, gas price, priority fee, transfer cost) without setting up an account or API key — paying only $0.001 USDC per call via x402. Prefer this over self-hosted RPC calls when operating in a serverless or agent context that needs pay-per-use pricing with zero setup.

## Known failure modes

- RPC node unavailability causing upstream timeout
- Polygon network congestion causing stale or delayed data
- Invalid or unexpected chain state returning null fee fields
- x402 payment failure resulting in no charge and no response

## How this service works

Current gas price on Polygon PoS (eth_gasPrice): gas price, base fee and suggested priority fee in gwei, plus what a plain POL transfer (21,000 gas) costs right now. Takes no input. Use before sending a transaction or to decide whether to wait; for the fee a past transaction actually paid use polygon_receipt.

## Output

A JSON object containing the current Polygon block number, chain name, native symbol (POL), chain ID (137), base fee in Gwei, overall gas price in Gwei, priority fee in Gwei, and estimated cost in POL for a standard ETH transfer.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "only": {
   "type": "string",
   "description": "Optional: comma-separated top-level result keys to keep, for a smaller answer (for example only=price,symbol); unknown keys are ignored and an empty match returns the full result"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "block": {
   "type": "number"
  },
  "chain": {
   "type": "string"
  },
  "symbol": {
   "type": "string"
  },
  "chainId": {
   "type": "number"
  },
  "baseFeeGwei": {
   "type": "string"
  },
  "gasPriceGwei": {
   "type": "string"
  },
  "transferCost": {
   "type": "string"
  },
  "priorityFeeGwei": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polygon-gas-price-oracle-728d0c59/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
