# Phantom API — Solana Gas Fee Estimator

> Phantom API — Solana Gas Fee 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 the gas/transaction fee for a Solana transaction given sender, recipient, data, and value fields

## Facts

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

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-solana-gas-fee-estimator-fbe59d76 -d '<json body>'
```

Example prompt: Estimate the Solana gas fee for a transaction from wallet 7xKf...abc to wallet 9pQr...xyz with no data payload and a value of 1.5 SOL.

## When to prefer this

Use this endpoint when you need a quick, pay-per-call Solana gas fee estimate without running a full RPC node or subscribing to a monthly plan. Ideal for agents that need on-demand cost checks before executing Solana transactions across 57+ supported networks, especially when cost predictability and low per-call pricing ($0.01 USDC) matters more than bulk throughput.

## Known failure modes

- Invalid or malformed wallet address in 'from' or 'to' fields returns an error
- Malformed 'data' field (non-hex or wrong format) may cause estimation failure
- Network congestion or RPC unavailability may return a timeout or 503
- Missing required fields may return a 400 bad request
- Estimation may be inaccurate if Solana network fee schedule has recently changed

## 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 fee (likely in lamports or SOL) for the described Solana transaction, allowing the caller to budget transaction costs before submitting 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-solana-gas-fee-estimator-fbe59d76/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)
