# Phantom API — Humanity Gas Estimate

> Phantom API — Humanity 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-09-15).

Estimates the gas cost for a transaction on the Humanity blockchain network before it is submitted

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/humanity/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-humanity-gas-estimate-2295de5b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yZGkHkX6D4ZvpL63qTOyE

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-humanity-gas-estimate-2295de5b -d '<json body>'
```

Example prompt: Before I send this transaction on the Humanity network — to address 0xABC...123, from 0xDEF...456, with calldata 0x095ea7b3... and value 0 — can you estimate how much gas it'll need?

## When to prefer this

Use this endpoint when you need to estimate gas for a transaction specifically on the Humanity network before submission. Prefer this over generic Ethereum gas estimators when you are building on or interacting with the Humanity chain. Ideal for pre-flight checks in DeFi, NFT minting, token transfers, or any smart contract interaction where you want to avoid failed transactions and budget fees accurately.

## Known failure modes

- Invalid or malformed address in 'to' or 'from' fields returns an error
- Malformed calldata in 'data' field causes estimation failure
- Transaction that would revert on-chain returns execution revert error
- Unsupported network or node unavailability returns 503 or timeout
- Missing required fields may return 400 bad request
- Value field not in expected hex or decimal format causes parse 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) needed to execute the specified transaction on the Humanity network, allowing callers to budget fees and validate feasibility 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-humanity-gas-estimate-2295de5b/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)
