# Phantom API — Polygon Gas Estimate

> Phantom API — Polygon Gas Estimate is a paid API for AI agents from phantom-api-omega.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Estimates gas cost for a transaction on the Polygon network given recipient, data, sender, and value fields

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/polygon/gas/estimate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phantom-api-polygon-gas-estimate-b86665f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FNaw2k_-vqR1UibMZzlRU

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 phantom-api-polygon-gas-estimate-b86665f3 -d '<json body>'
```

Example prompt: Estimate the gas needed to call this Polygon smart contract — the recipient is 0xAbC...123, the sender is 0xDeF...456, no ETH value being sent, and the calldata is 0xa9059cbb000000...

## When to prefer this

Use this endpoint when you need a gas estimate specifically on the Polygon (MATIC) network before submitting a transaction. Prefer this over Ethereum mainnet gas estimators when your contract or token transfer targets Polygon. It is a read-only simulation that costs $0.01 USDC per call via x402, making it suitable for pre-flight checks in automated workflows, DeFi bots, or wallet UIs that need accurate gas limits without risking on-chain reverts.

## Known failure modes

- Invalid or malformed address in 'to' or 'from' fields returns an error
- Transaction would revert on-chain causes estimation failure with revert reason
- Missing required 'to' field when calling a contract may return an error
- Network congestion or RPC node unavailability causes timeout
- Insufficient balance simulation causing revert mid-estimation
- Malformed calldata in 'data' field causes decode error

## How this service works

Lightning-fast access to blockchain data, smart contract insights, and Web3 infrastructure across 57+ networks. Pay-per-call via x402.

## Output

Returns a gas estimate (typically as a hex or integer gas limit) representing the approximate units of gas required to execute the specified transaction on the Polygon network, allowing the caller to set an appropriate gas limit and estimate total fee cost in MATIC.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "data": {
   "type": "string"
  },
  "from": {
   "type": "string"
  },
  "value": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phantom-api-polygon-gas-estimate-b86665f3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from phantom-api-omega.vercel.app](https://www.zero.xyz/host/phantom-api-omega.vercel.app/llms.txt)
