# Phantom API — opBNB Gas Estimator

> Phantom API — opBNB 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-14).

Estimates gas costs for transactions on the opBNB network given transaction parameters

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/opbnb/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-opbnb-gas-estimator-b57ad900
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_i7mpDKK0sv-tE7qrpiSzK

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-opbnb-gas-estimator-b57ad900 -d '<json body>'
```

Example prompt: Before I send a transaction on opBNB to contract 0xAbC...123 with calldata 0xd46e8dd... from my wallet 0x1234...5678, can you estimate how much gas it will use?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call gas estimate specifically for the opBNB (BNB Chain L2) network without setting up your own RPC node or managing Web3 infrastructure. Ideal for agents that need lightweight pre-transaction cost checks across opBNB without committing to a full node provider subscription.

## Known failure modes

- Invalid or malformed address in 'to' or 'from' field returns an error
- Malformed or invalid calldata in 'data' field causes estimation failure
- Transaction would revert on-chain causing gas estimation to fail with a revert error
- Network congestion or RPC unavailability may cause timeouts
- Missing required fields may return a 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 an estimated gas amount (in gas units) for executing the specified transaction on the opBNB network, allowing callers to budget fees before 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-opbnb-gas-estimator-b57ad900/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)
