# Phantom API — Linea Gas Estimator

> Phantom API — Linea 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 Linea blockchain network before submission

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/linea/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-linea-gas-estimator-7567f739
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Vy5n0HCn0-pVey0dBR9AO

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-linea-gas-estimator-7567f739 -d '<json body>'
```

Example prompt: Before I send this transaction on Linea — calling contract 0xAbC...123 with data 0xd0e30c0b from my wallet 0x456...789 — can you estimate how much gas it's going to cost me?

## When to prefer this

Use this endpoint when you need a fast, pay-per-call gas estimate specifically on the Linea network without maintaining your own RPC node infrastructure. Ideal for agents that need to pre-check transaction feasibility before execution, or for cost-aware workflows that need to budget gas fees dynamically. Prefer over self-hosted RPC solutions when low operational overhead and per-call pricing ($0.01 USDC) is acceptable.

## Known failure modes

- Invalid or malformed address fields return an error response
- Unsupported or missing 'to' field for contract calls may cause estimation failure
- Network congestion or RPC node unavailability may return a 503 or timeout
- Providing invalid hex for 'data' field may cause a parse error
- Insufficient USDC payment via x402 returns a 402 Payment Required response

## 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 value (in gas units) for the described transaction on the Linea network, allowing callers to determine whether they have sufficient funds and to set appropriate gas limits before submitting the actual transaction.

## 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-linea-gas-estimator-7567f739/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)
