# Phantom API – Soneium Gas Estimator

> Phantom API – Soneium 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 gas cost for a transaction on the Soneium blockchain network before it is submitted.

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/soneium/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-soneium-gas-estimator-ea990dde
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YLXQCs51JP2LJ-FunXGtK

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-soneium-gas-estimator-ea990dde -d '<json body>'
```

Example prompt: Before I send a transaction on Soneium to contract 0xAbC...123 with calldata 0xdeadbeef from my wallet 0x456...789 carrying 0 ETH, can you estimate how much gas it will use?

## When to prefer this

Use this endpoint when you specifically need gas estimation on the Soneium network before submitting a transaction. Prefer it over generic ETH mainnet estimators when targeting Soneium-specific contracts or DApps. Ideal for pre-flight cost checks, budget validation, and UX flows that show users their expected fees before signing.

## Known failure modes

- Invalid or malformed address in 'to' or 'from' fields returns a 400 error
- Malformed calldata in 'data' field causes estimation failure
- Transaction would revert on-chain — estimator returns an error or revert reason
- Soneium RPC node unavailable — returns 503 or timeout
- Insufficient value causing underflow in simulation returns estimation error
- Empty or missing required fields may cause a 422 validation error

## 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 for the described Soneium transaction, typically including the estimated gas units required and possibly the current gas price, allowing callers to compute total transaction cost before broadcasting.

## 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-soneium-gas-estimator-ea990dde/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)
