# Blockchain Gas Estimation API

> Blockchain Gas Estimation API is a paid API for AI agents from biosfera.46-62-215-147.sslip.io, paid per call via x402, $0.0015/call, status unknown (last checked 2026-10-01).

Estimates the gas a transaction would consume and its cost at the current gas price on Base, Ethereum, Arbitrum, Optimism, or Polygon.

## Facts

- Endpoint: GET https://biosfera.46-62-215-147.sslip.io/o/estimate-gas?utm_source=zero.xyz
- Price: $0.0015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockchain-gas-estimation-api-3499d369
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v0u2iWApnz31-Hmitqfc3

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 blockchain-gas-estimation-api-3499d369
```

Example prompt: Before I sign anything, estimate how much gas the transaction from 0xAbCd...1234 to 0x5678...EfGh will use on Base, and what it'll cost at the current gas price — it's a plain ETH transfer with no calldata.

## When to prefer this

Choose this endpoint when you need to estimate gas consumption and cost for a specific transaction before broadcasting it, especially when you have the sender address, recipient, optional calldata, and optional value. It covers five major EVM chains in one call. Prefer it over generic gas price endpoints when you need transaction-specific gas units rather than just network gas prices, and when you want to avoid signing a transaction that may fail or be unexpectedly expensive.

## Known failure modes

- Invalid Ethereum address format for 'from' or 'to' — must be 0x followed by 40 hex characters
- Unsupported chain value — must be one of base, ethereum, arbitrum, optimism, polygon
- Malformed or oversized calldata — must be 0x-prefixed hex up to 1000 hex chars
- Transaction would revert on-chain — simulation fails and no estimate is returned
- RPC node unavailable for the requested chain — upstream connection error
- Missing required parameters (chain, from, to) returns a validation error

## How this service works

Use when you need the gas a transaction would consume on Base, Ethereum, Arbitrum, Optimism or Polygon before signing it: pass from, to, optional calldata and value (wei). Returns the estimate and the cost at the current gas price.

## Output

Returns the estimated gas units the transaction would consume and the estimated cost in wei (or equivalent native token) at the current gas price on the specified chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$"
      },
      "data": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{0,1000}$"
      },
      "from": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$"
      },
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string"
      },
      "value": {
       "type": "string",
       "pattern": "^[0-9]{1,30}$"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockchain-gas-estimation-api-3499d369/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from biosfera.46-62-215-147.sslip.io](https://www.zero.xyz/host/biosfera.46-62-215-147.sslip.io/llms.txt)
