# Phantom API – Avalanche Gas Estimator

> Phantom API – Avalanche 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 the gas cost for a transaction on the Avalanche network given transaction parameters

## Facts

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

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-avalanche-gas-estimator-e786a8a7 -d '<json body>'
```

Example prompt: Estimate the gas needed for a transaction on Avalanche where I'm sending from 0xAbC...123 to the contract at 0xDeF...456 with calldata 0xa9059cbb... and no AVAX value attached.

## When to prefer this

Use this endpoint when you need a fast, pay-per-call gas estimate on the Avalanche network without managing your own RPC node or API keys. Prefer it for pre-flight checks before submitting transactions, DeFi automation agents that need cost awareness, or any workflow that requires Avalanche-specific gas computation across 57+ supported networks via a single infrastructure provider.

## 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
- Simulated transaction reverts on-chain (e.g. insufficient token balance) may return a revert error rather than a gas estimate
- Avalanche RPC node unavailable causes a 5xx or timeout
- 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 Avalanche transaction, enabling callers to set appropriate gas limits before broadcasting the transaction to the network.

## 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-avalanche-gas-estimator-e786a8a7/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)
