# Phantom API — Base Network Gas Estimator

> Phantom API — Base Network 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-16).

Estimates gas costs for a transaction on the Base blockchain network before submission

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/base/gas/estimate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phantom-api-base-network-gas-estimator-471b85e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fsofb1mPKSfIMqHO4NYcf

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-base-network-gas-estimator-471b85e2 -d '<json body>'
```

Example prompt: Before I send 0.5 ETH from 0xAbC...123 to 0xDeF...456 on Base, can you estimate how much gas this transaction will cost so I know if I have enough to cover fees?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call gas estimate specifically on the Base network without managing your own RPC infrastructure. Ideal for AI agents that need to pre-validate transaction affordability before execution, or for apps that want to surface gas cost previews to users. Prefer this over self-hosted eth_estimateGas calls when you want zero infrastructure overhead and are already using x402 micropayment rails.

## Known failure modes

- Invalid or malformed address in 'to' or 'from' fields returns an error
- Malformed hex data in the 'data' field causes parsing failure
- Simulated transaction reverts on-chain returns an execution revert error
- Base network RPC unavailability causes timeout or 503
- Missing required fields (e.g. 'to') may return a validation error
- Extremely complex contract interactions may produce 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 for the described transaction on the Base network, typically including the estimated gas units required and potentially the recommended gas price, allowing the caller to calculate total transaction cost in ETH before submitting.

## 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-base-network-gas-estimator-471b85e2/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)
