# Phantom API — Metis Gas Estimator

> Phantom API — Metis Gas Estimator 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-15).

Estimates gas costs for a transaction on the Metis blockchain network given recipient, sender, value, and calldata.

## Facts

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

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-metis-gas-estimator-b0c90ff5 -d '<json body>'
```

Example prompt: Can you estimate how much gas it'll cost to call this Metis contract — I'm sending from 0xAbC...123 to 0xDeF...456 with no ETH value and this calldata: 0xa9059cbb000...?

## When to prefer this

Use this endpoint when you need a gas estimate specifically for the Metis network (an EVM-compatible Layer 2). Prefer this over generic gas oracles when you need transaction-specific estimates based on actual calldata and addresses, or when you want pay-per-call pricing without a subscription. Best suited for agents that need to preflight transactions, plan gas budgets, or validate contract call costs on Metis before committing.

## Known failure modes

- Invalid or malformed Ethereum address in 'to' or 'from' fields returns an error
- Malformed or invalid hex calldata in 'data' field causes rejection
- Transaction would revert on-chain, causing gas estimation to fail
- Network unavailability or RPC node errors return a 5xx response
- Missing required fields may return a validation error
- Payment not included or insufficient USDC causes 402 payment required response

## 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 an estimated gas amount (in gas units) required to execute the specified transaction on the Metis blockchain, allowing the caller to calculate transaction fees before submission.

## 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-metis-gas-estimator-b0c90ff5/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)
