# Phantom API — Celo Gas Estimator

> Phantom API — Celo 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-14).

Estimates gas cost for a transaction on the Celo blockchain network before submission

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/celo/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-celo-gas-estimator-98e379dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rgtcMgxUAjChcMn49uW21

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-celo-gas-estimator-98e379dc -d '<json body>'
```

Example prompt: Before I submit this transaction on Celo, can you estimate how much gas it'll use? The sender is 0xAbC...123, the recipient is 0xDeF...456, and the calldata is 0xa9059cbb...

## When to prefer this

Use this endpoint when you need a gas estimate specifically on the Celo network before submitting a transaction, especially when cost predictability matters or when building user-facing fee previews in a Celo DApp. Prefer this over generic Ethereum gas estimators when your target chain is Celo.

## Known failure modes

- Invalid or malformed address in 'to' or 'from' fields returns an error
- Reverted simulation (e.g. contract call would fail) may return an error or revert message
- Missing required fields may result in a 400 bad request
- Network unavailability or RPC node issues may cause 5xx errors
- Incorrect calldata encoding may yield inaccurate estimates

## 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 Celo transaction, allowing callers to anticipate fees before broadcasting the transaction 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-celo-gas-estimator-98e379dc/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)
