# Gas Optimizer Bundled Workflow

> Gas Optimizer Bundled Workflow is a paid API for AI agents from agent402.tools, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-15).

Runs a bundled gas optimization workflow in one call: fetches Base gas, Ethereum gas, Base fee estimate, and ETH/USD price — all for a single x402 payment.

## Facts

- Endpoint: POST https://agent402.tools/api/skill/gas-optimizer
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gas-optimizer-bundled-workflow-66fcfa5a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y0_hBb8PMLH4xMQBW16b3

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 gas-optimizer-bundled-workflow-66fcfa5a -d '<json body>'
```

Example prompt: What's the cheapest gas right now? Give me current Base gas, Ethereum gas, the Base fee estimate, and the ETH price in USD so I can figure out transaction costs.

## When to prefer this

Use this endpoint when you need a comprehensive, real-time gas overview across both Base and Ethereum networks in a single API call with one payment, rather than making three separate tool calls. Ideal for agents that need to compute transaction costs and USD equivalents together without orchestrating multiple requests.

## Known failure modes

- x402 payment fails or wallet has insufficient USDC — payment error returned
- one or more underlying tools (gas-snapshot, gas-estimate, crypto-price) fails — partial or error response
- network timeout fetching live gas or price data — transient error
- invalid request body format — 400 bad request

## How this service works

Bundled execution of the Gas optimizer workflow - Find the cheapest gas right now: Base gas, Ethereum gas, Base fee estimate, and ETH price for USD conversion. One x402 payment runs 3 underlying tools (gas-snapshot, gas-estimate, crypto-price); partial-success per step.

## Output

A bundled response containing: current Base network gas price, Ethereum network gas price, Base fee estimate, and current ETH/USD price — aggregating results from gas-snapshot, gas-estimate, and crypto-price tools in a single call.

## 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": {
     "required": [],
     "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",
     "required": [
      "pack",
      "args",
      "steps",
      "summary"
     ],
     "properties": {
      "args": {
       "type": "object"
      },
      "pack": {
       "type": "string"
      },
      "steps": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "ok": {
          "type": "boolean"
         },
         "slug": {
          "type": "string"
         },
         "result": {
          "type": "object"
         }
        }
       }
      },
      "summary": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "args": {},
  "pack": "gas-optimizer",
  "steps": [
   {
    "ok": true,
    "slug": "gas-snapshot",
    "result": {}
   },
   {
    "ok": true,
    "slug": "gas-estimate",
    "result": {}
   },
   {
    "ok": true,
    "slug": "crypto-price",
    "result": {}
   }
  ],
  "summary": "3/3 steps succeeded"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gas-optimizer-bundled-workflow-66fcfa5a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
