# Phantom API — Berachain Gas Estimator

> Phantom API — Berachain 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-20).

Estimates gas costs for transactions on the Berachain network given sender, recipient, calldata, and value.

## Facts

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

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-berachain-gas-estimator-d9d43d92 -d '<json body>'
```

Example prompt: Estimate the gas needed for a Berachain transaction from 0xAbC...123 to the contract at 0xDeF...456 with calldata 0xa9059cbb000...0064 and a value of 0.

## When to prefer this

Use this endpoint when you need a quick, pay-per-call gas estimate specifically on the Berachain network without managing your own RPC node or SDK setup. Prefer it over general Ethereum gas estimators when the target chain is Berachain, and over full node solutions when you want zero infrastructure overhead with per-call micropayment pricing via x402.

## Known failure modes

- Invalid or malformed address in 'to' or 'from' field returns an error
- Malformed or non-hex calldata in 'data' field causes a parse error
- Transaction simulation fails if the contract reverts, returning an execution error
- Network unavailability or Berachain RPC downtime results in a timeout or 503 error
- Missing required fields may return a 400 bad request
- Value format mismatch (e.g. non-hex string for value) may cause a parsing failure

## 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 Berachain network, allowing callers to plan fee budgets 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-berachain-gas-estimator-d9d43d92/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)
