# Phantom API — Robinhood Gas Estimate

> Phantom API — Robinhood Gas Estimate 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 the gas cost for an Ethereum transaction given to/from addresses, calldata, and value

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/robinhood/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-robinhood-gas-estimate-54c64edc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E_PyYnmLL8pH7c6jXFySa

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-robinhood-gas-estimate-54c64edc -d '<json body>'
```

Example prompt: Before I send this Ethereum transaction to 0xRecipient from 0xMySender with calldata 0xabcdef and a value of 0.5 ETH, can you estimate how much gas it will cost?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call gas estimate for an Ethereum transaction before broadcasting it, especially in agentic workflows where you want to validate affordability or display cost previews without setting up your own RPC infrastructure. Prefer this over self-hosted solutions when you want zero infrastructure overhead and are already operating in an x402 micropayment context.

## Known failure modes

- Invalid or malformed address for 'to' or 'from' fields returns an error
- Malformed or non-hex calldata causes a parse error
- Network unavailability or RPC node failure returns a 5xx error
- Transaction simulation reverts on-chain (e.g. insufficient allowance, failed require) may return revert reason or error
- Missing required fields may result in 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 described Ethereum transaction, allowing the caller to calculate the total fee 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-robinhood-gas-estimate-54c64edc/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)
