# BizIntel API – Optimism Gas Price

> BizIntel API – Optimism Gas Price is a paid API for AI agents from bizintel-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns the current gas price on the Optimism L2 network in both Wei and Gwei units

## Facts

- Endpoint: POST https://bizintel-api.hahavoid0.workers.dev/finance/gas-optimism
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bizintel-api-optimism-gas-price-0c817c17
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5f2k1pb4griewkXHC3I1b

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 bizintel-api-optimism-gas-price-0c817c17 -d '<json body>'
```

Example prompt: What's the current gas price on Optimism right now — give me the value in both Wei and Gwei so I can decide if it's a good time to submit my transaction?

## When to prefer this

Use this endpoint when you need a quick, cheap ($0.01 USDC) lookup of Optimism L2 gas prices without managing your own RPC node or API key. Ideal for agents that need to make transaction timing decisions, cost estimates, or display current fee data for Optimism specifically — as opposed to Ethereum mainnet or other L2s.

## Known failure modes

- Network unavailable or Optimism RPC unreachable — may return unsupported or low-confidence result
- Stale data if upstream oracle has not refreshed recently — check data_as_of field
- Invalid or malformed POST body — returns 400-level error
- Transient worker error on Cloudflare edge — retry recommended

## How this service works

Fetches current Optimism L2 gas price estimation from the mainnet RPC pipeline.

## Output

Returns a JSON object containing the current Optimism gas price in Wei (string) and Gwei (float), a boolean indicating network support, a confidence level (e.g. 'high'), the data timestamp, and a standard informational disclaimer. Warnings array is included for any anomalies.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "gasPriceWei": "10000000",
   "gasPriceGwei": 0.01
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bizintel-api-optimism-gas-price-0c817c17/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bizintel-api.hahavoid0.workers.dev](https://www.zero.xyz/host/bizintel-api.hahavoid0.workers.dev/llms.txt)
