# Phantom API — Gnosis Chain Gas Estimator

> Phantom API — Gnosis Chain 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-10-20).

Estimates the gas cost for a transaction on the Gnosis blockchain network before it is submitted

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/gnosis/gas/estimate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phantom-api-gnosis-chain-gas-estimator-59cfd2a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SoVKxtCuAjoIaSaH8OK-k

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-gnosis-chain-gas-estimator-59cfd2a9 -d '<json body>'
```

Example prompt: Before I send this contract interaction on Gnosis chain — from 0xABC...123 to 0xDEF...456 with calldata 0x12345678 and value 0 — can you estimate the gas it would use?

## When to prefer this

Use this endpoint when you need a fast, pay-per-call gas estimate specifically on the Gnosis chain (xDAI) without committing a full RPC node subscription. Prefer it over generic Ethereum gas estimators when targeting Gnosis-specific transactions, and over manual eth_estimateGas calls when you want a simple HTTP API abstraction with no node infrastructure required.

## Known failure modes

- Invalid or malformed address in 'to' or 'from' fields returns an error
- Malformed or non-hex calldata in 'data' field causes a parsing error
- Transaction would revert on-chain, causing the estimate to fail with a revert reason
- Network connectivity issues with Gnosis RPC result in a timeout or unavailable error
- Missing required fields may result in a 400 bad request

## 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 (in gas units) for the described transaction on the Gnosis network, allowing the caller to assess transaction cost and feasibility before committing it on-chain.

## 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-gnosis-chain-gas-estimator-59cfd2a9/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)
