{"uid":"cap_Ph5u3vMGIaVYABKVupGRW","slug":"agentfeeds-jp-gas-settlement-window-decision-536b5aff","name":"agentfeeds.jp Gas Settlement Window Decision","description":"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.","url":"https://api.agentfeeds.jp/v1/x402/gas/settlement_window","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3UR4EK1m84a-HI--SPTiq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares current Ethereum gas costs against a caller-supplied USD threshold and returns a settle_now or wait action recommendation with a validity TTL.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Automated settlement timing for agent","prompt":"I'm running an agent that submits ERC-3009 settlements. Check if gas is currently below my $0.75 max for a 65,000 gas unit transaction and tell me whether to settle now or hold off, and how many seconds until I need to recheck."},{"title":"High-volume batch settlement gating","prompt":"Before I kick off my settlement run using 200,000 gas units, check if the current gas cost is under $2.00 USD — give me a clear settle now or wait answer so I know whether to proceed."},{"title":"Conservative micro-payment settlement","prompt":"I want to settle a tiny micro-payment on-chain but only if gas costs less than $0.10. Check right now for a 65,000 gas unit transaction and let me know if conditions are good or if I should wait."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:59:07.391Z","isFirstParty":false}