{"uid":"cap_YNlQNcp2tpGvrrT1pM3Dn","slug":"base-transaction-execution-decision-api-697b2c6e","name":"Base Transaction Execution Decision API","description":"Paid decision API for AI agents planning Base Mainnet transactions. Provide an estimated gas limit, urgency, and maximum wait window to receive EXECUTE_NOW, WAIT, or NEUTRAL from fresh public Base RPC fee data. The output includes current gas, recent percentile, short-term trend, an execution-fee estimate, confidence, and reason codes. Price: 0.005 USDC per successful request via x402 v2.","url":"https://base-tx.weatherriskapi.com/v1/base/transaction-decision?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"urgency":{"enum":["low","normal","high"],"type":"string","description":"Tolerance for delay: low favors waiting when current gas is expensive; normal balances price and time; high never returns WAIT."},"gasLimit":{"type":"integer","maximum":30000000,"minimum":21000,"description":"Estimated execution gas units for the planned Base transaction. Obtain this from transaction construction or eth_estimateGas; this API does not estimate it."},"maxWaitMinutes":{"type":"integer","maximum":120,"minimum":0,"description":"Maximum acceptable delay. Zero means waiting is unavailable and produces EXECUTE_NOW."}}},"responseSchema":{"type":"json","example":{"trend":"STABLE","source":"Base Mainnet JSON-RPC","decision":"EXECUTE_NOW","confidence":72,"limitations":["Execution-fee estimate excludes L1 data and operator fees."],"reasonCodes":["CURRENT_GAS_BELOW_RECENT_MEDIAN"],"currentGasGwei":"0.006","recentPercentile":33,"dataFreshnessSeconds":2,"estimatedNetworkFeeEth":"0.00000108","recommendedWaitMinutes":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_W8SPoO6r2IFPeKFA2M2UC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes live Base Mainnet gas fee data to recommend whether an AI agent should execute a transaction now, wait, or stay neutral based on urgency and gas parameters.","exampleAgentPrompt":"Should I submit my Base transaction right now? It's a normal-urgency transfer with an estimated gas limit of 21000 and I can wait up to 30 minutes if fees are high.","exampleUseCases":[{"title":"DeFi swap timing optimization","prompt":"I'm about to execute a token swap on Base with a gas limit of about 150000 — urgency is normal and I can wait up to 20 minutes. Should I fire it now or hold off until gas drops?"},{"title":"High-urgency NFT mint execution","prompt":"I need to mint an NFT on Base immediately — urgency is high, gas limit is around 80000. Tell me the current gas situation and whether I should execute right now."},{"title":"Low-urgency batch payout scheduling","prompt":"I'm planning a batch payout contract call on Base with a gas limit of 500000 — I'm in no rush and can wait up to 2 hours. Is now a good time or should I wait for cheaper gas?"}],"resultDescription":"Returns a JSON object with a top-level decision of EXECUTE_NOW, WAIT, or NEUTRAL, along with the current Base gas price in Gwei, the gas percentile relative to recent history, a short-term trend label (e.g. STABLE/RISING/FALLING), an estimated network fee in ETH, a confidence score (0–100), reason codes explaining the decision, data freshness in seconds, and a recommended wait time in minutes.","failureModes":["Invalid gas limit outside 21000–30000000 range returns a 400 validation error","Invalid urgency enum value returns a 400 bad request","maxWaitMinutes outside 0–120 range returns a 400 error","Base RPC node unavailability may cause 503 or degraded confidence scores","Payment failure via x402 results in a 402 response before the decision is computed","Stale RPC data may produce higher dataFreshnessSeconds and lower confidence"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a real-time, opinionated go/no-go signal for Base Mainnet transaction submission — especially when gas cost optimization matters and the agent can tolerate a configurable delay. It is ideal for DeFi workflows, automated payouts, or any on-chain action where timing affects cost. Prefer this over manually polling eth_gasPrice when you want a pre-interpreted recommendation with trend context and confidence scoring rather than raw fee data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T06:31:59.285Z","isFirstParty":false,"canonicalSlug":"base-transaction-execution-decision-api-697b2c6e"}