# Phantom API — BOB Gas Estimator

> Phantom API — BOB 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-13).

Estimates the gas cost for a transaction on the BOB (Build on Bitcoin) blockchain network

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/bob/gas/estimate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phantom-api-bob-gas-estimator-b76de65c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3WOlaZ7v0ot_lWXumBho2

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-bob-gas-estimator-b76de65c -d '<json body>'
```

Example prompt: Can you estimate how much gas it would cost to send a transaction on the BOB network from address 0xAbC...123 to 0xDef...456 with a value of 0.01 ETH and this calldata: 0xa9059cbb...?

## When to prefer this

Use this endpoint when you need a gas estimate specifically for the BOB (Build on Bitcoin) Layer 2 network and want pay-per-call pricing via x402 without a subscription. Ideal for agents that occasionally need gas estimates across multiple chains and want to avoid maintaining RPC infrastructure.

## Known failure modes

- Invalid or malformed address in 'to' or 'from' fields returns an error
- Malformed hex data in 'data' field causes parsing failure
- Transaction simulation reverts if the contract call is invalid or would fail on-chain
- Network connectivity issues to BOB RPC nodes may cause timeouts
- Missing required fields may return a 400 bad request error
- Payment failure (insufficient USDC) returns 402 Payment Required

## 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 the BOB network, allowing callers to budget transaction 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-bob-gas-estimator-b76de65c/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)
