# Phantom API — SUI Gas Estimation

> Phantom API — SUI Gas Estimation 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 gas fees for a transaction on the SUI blockchain before submission

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/sui/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-sui-gas-estimation-ff64efde
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j_1PwCygbw7yCwA-iWAyC

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-sui-gas-estimation-ff64efde -d '<json body>'
```

Example prompt: Before I send this SUI transaction from 0xabc123... to 0xdef456... with data 0x1234abcd, can you estimate how much gas it will cost?

## When to prefer this

Use this endpoint when you need a fast, pay-per-call gas estimate on the SUI blockchain without managing your own node infrastructure. Prefer it for agents that need cost-awareness before executing on-chain actions on SUI specifically, as opposed to EVM-compatible chains.

## Known failure modes

- Invalid or malformed address for 'from' or 'to' fields returns an error
- Malformed 'data' hex string causes a parse error
- SUI network node unavailable causes a timeout or 503 error
- Missing required fields may return a 400 bad request
- Payment not provided or insufficient USDC returns 402

## 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 for the described SUI transaction, allowing the caller to understand the cost before actually submitting 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-sui-gas-estimation-ff64efde/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)
