# Phantom API — Hyperliquid Gas Estimator

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

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/hyperliquid/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-hyperliquid-gas-estimator-45890900
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DNj-7aV0ObWS6VOtTSy48

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-hyperliquid-gas-estimator-45890900 -d '<json body>'
```

Example prompt: Before I submit this Hyperliquid transaction, can you estimate the gas cost? The sender is 0xAbc123..., recipient is 0xDef456..., with calldata 0x095ea7b3... and value 0x0.

## When to prefer this

Use this endpoint when you need a gas estimate specifically for Hyperliquid network transactions before submission. Prefer this over generic EVM gas estimators when operating on Hyperliquid's L1 or its EVM-compatible layer, especially when paying per call is acceptable and you need fast, on-demand estimates without setting up your own RPC node.

## Known failure modes

- Invalid or malformed address in 'to' or 'from' fields returns an error
- Malformed hex calldata in 'data' field causes a parsing error
- Network unavailability or Hyperliquid RPC downtime returns a timeout or 503
- Transaction that would revert on-chain may return an execution revert error
- Missing required fields (e.g. 'to') may return 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 an estimated gas amount (in gas units) required to execute the specified transaction on Hyperliquid, allowing callers to budget fees and validate transactions before on-chain submission.

## 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-hyperliquid-gas-estimator-45890900/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)
