{"uid":"cap_Eptnkp7ifyKAtHCrKF634","slug":"speraxos-flash-loan-profit-estimator-8a2d5161","name":"SperaxOS Flash Loan Profit Estimator","description":"AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.","url":"https://chat.sperax.io/api/x402/tools/flash-loan-scanner/estimateFlashLoanProfit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"loanAmountUsd":{"type":"number","description":"Flash loan amount in USD."},"opportunityId":{"type":"string","description":"Opportunity ID from scan results."},"preferredProvider":{"type":"string","description":"Preferred flash loan provider (aave, dydx, balancer, etc.)."}}},"responseSchema":null,"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_4UFJm8FNpllwmtyxyRrMd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0xD74f5255D557944cf7Dd0E45FF521520002D5748","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Estimates the expected profit of a flash loan arbitrage opportunity given a loan amount, opportunity ID, and preferred lending provider","exampleAgentPrompt":"Estimate the flash loan profit for opportunity ID 'arb-0x123abc' using Aave as the provider, with a loan amount of $75,000 — I want to know if it's worth executing before I pull the trigger.","exampleUseCases":[{"title":"Pre-trade arbitrage profitability check","prompt":"Before I execute this flash loan, estimate the profit for opportunity arb-0xf4a2 using a $50,000 loan on dydx — I need to know the net return after fees."},{"title":"Provider comparison for maximum yield","prompt":"I have opportunity ID opp-balancer-892 lined up — can you estimate the flash loan profit using Balancer as the provider with a $200,000 loan size?"},{"title":"Quick sanity check on DeFi scanner result","prompt":"I just got a flash loan scan result with opportunity ID scan-0xabc999 — estimate the profit if I borrow $10,000 through Aave so I can decide whether it's worth the gas cost."}],"resultDescription":"Returns an estimated profit figure for the specified flash loan opportunity, factoring in loan fees, provider-specific costs, and the arbitrage spread — giving the agent a clear net-return number before committing to an on-chain transaction.","failureModes":["Invalid or expired opportunity ID returns an error or zero-profit estimate","Unsupported flash loan provider name causes a validation error","Loan amount outside provider limits (too low or too high) may return an infeasible result","Network or pricing data staleness may cause inaccurate profit estimates","Payment failure via x402 (insufficient USDC balance) blocks the request entirely"],"whenToPreferThis":"Use this endpoint when you have already identified a flash loan arbitrage opportunity (via a scanner) and need a precise profit estimate before executing — particularly when you want to compare provider costs (Aave, dydx, Balancer) or validate whether an opportunity clears your minimum profit threshold. Prefer this over generic DeFi analytics tools when you need provider-specific fee modeling tied to a concrete opportunity ID.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:51:16.312Z","isFirstParty":false,"canonicalSlug":"speraxos-flash-loan-profit-estimator-8a2d5161"}