# Phantom API — Worldchain Gas Estimator

> Phantom API — Worldchain 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 costs for a transaction on the Worldchain network before submission

## Facts

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

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-worldchain-gas-estimator-7ae5f3f0 -d '<json body>'
```

Example prompt: Before I send this Worldchain transaction from 0xAbC...123 to the contract at 0xDef...456 with calldata 0xa9059cbb... and a value of 0 ETH, can you estimate how much gas it will use?

## When to prefer this

Choose this endpoint when you need a fast, pay-per-call gas estimate specifically on the Worldchain network without managing your own RPC infrastructure. Ideal for agents that need pre-flight fee checks before submitting transactions, or DApps that want to surface fee previews to users without a dedicated node.

## Known failure modes

- Invalid or malformed address in 'to' or 'from' fields returns an error
- Malformed or non-hex 'data' field causes a parse error
- Simulation reverts if the contract call would revert on-chain
- Network unavailability or RPC timeout may return a 5xx error
- Payment failure via x402 if USDC balance is insufficient

## 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 Worldchain network, allowing callers to budget fees and avoid out-of-gas failures before actual 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-worldchain-gas-estimator-7ae5f3f0/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)
