# agentfeeds.jp Gas Settlement Window Decision

> agentfeeds.jp Gas Settlement Window Decision is a paid API for AI agents from api.agentfeeds.jp, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Compares current Ethereum gas costs against a caller-supplied USD threshold and returns a settle_now or wait action recommendation with a validity TTL.

## Facts

- Endpoint: GET https://api.agentfeeds.jp/v1/x402/gas/settlement_window
- 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/agentfeeds-jp-gas-settlement-window-decision-536b5aff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ph5u3vMGIaVYABKVupGRW

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 agentfeeds-jp-gas-settlement-window-decision-536b5aff
```

Example prompt: Check whether current Ethereum gas costs are within my $0.50 USD budget for a standard 65,000-unit settlement transaction, and tell me if I should settle now or wait — and how long that answer is valid for.

## When to prefer this

Use this endpoint when you already know your USD cost tolerance and want a direct binary decision (settle or wait) without doing your own arithmetic on raw gas data. It is simpler than querying the raw settlement cost endpoint and comparing manually. Prefer it in automated agent loops where you need a TTL-bounded answer to gate transaction submission logic.

## Known failure modes

- Missing required max_acceptable_usd parameter returns a 400 error
- gas_units outside the 1000–2000000 range may be rejected or clamped
- Upstream gas oracle unavailability may result in 503 or stale data
- Payment failure (x402) blocks access to the response
- Floating-point precision issues with very small max_acceptable_usd values

## How this service works

Same computation as x402.gas.settlement_cost, re-shaped as a direct threshold comparison: pass your own max_acceptable_usd and get back action=settle_now or action=wait, plus how many seconds the reading is valid for before you should re-query. No new data, no judgment call beyond the arithmetic comparison you specified. Descriptive computation only; not investment advice.

## Output

Returns an action field with value 'settle_now' or 'wait', plus a valid_for_seconds integer indicating how long the recommendation remains valid before the agent should re-query. No price data or raw gas figures are included — only the threshold comparison result and its TTL.

## 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": [
      "max_acceptable_usd"
     ],
     "properties": {
      "gas_units": {
       "type": "integer",
       "description": "1000-2000000, default 65000"
      },
      "max_acceptable_usd": {
       "type": "number",
       "description": "caller-supplied threshold in USD, required"
      }
     }
    }
   },
   "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/agentfeeds-jp-gas-settlement-window-decision-536b5aff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentfeeds.jp](https://www.zero.xyz/host/api.agentfeeds.jp/llms.txt)
