{"uid":"cap_wYZhBlolnjzOSwiYVQLoW","slug":"arbipulse-flash-loan-strategy-builder-42e72c6d","name":"ArbiPulse Flash Loan Strategy Builder","description":"ArbiPulse flash loan strategy builder — zero-capital execution calldata for Aave V3 and Balancer flash loans with executor contract templates","url":"https://arbipulse.vercel.app/api/flash","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"asset":{"type":"string","description":"USDC | USDT | WETH | WBTC | DAI (default: USDC)"},"chain":{"type":"string","description":"ethereum | base | arbitrum | optimism | polygon (default: base)"},"amount":{"type":"string","description":"loan amount in USD, e.g. 100000"},"protocol":{"type":"string","description":"aave | balancer (default: aave)"},"receiver":{"type":"string","description":"optional — shows template if not provided"},"strategy":{"type":"string","description":"dex-arb | yield-arb | liquidation | custom (default: dex-arb)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"errors":{"type":"object","description":"Documented error responses, keyed by HTTP status code","additionalProperties":{"type":"object","required":["description"],"properties":{"example":{"type":"object"},"description":{"type":"string"}}}},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"asset":"USDC","chain":"base","calldata":"0x42b0b77c000000000000000000000000<receiver_address>000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","protocol":"aave-v3","pool_address":"0xA238Dd80C259a72e81d7e4664a9801593F98d1c5","risk_factors":["Tx reverts if arb profit < loan fee","Gas cost reduces net profit","Front-running by MEV bots"],"flash_fee_pct":0.09,"flash_fee_usd":90,"strategy_type":"dex-arb","execution_flow":[{"step":1,"action":"Call flashLoanSimple on Aave Pool","details":"Pool transfers 100,000 USDC to your receiver contract"},{"step":2,"action":"executeOperation callback fires","details":"Your contract executes the arb — swap USDC→ETH on DEX A, ETH→USDC on DEX B"},{"step":3,"action":"Approve and repay","details":"Approve Pool for 100,090 USDC (principal + 0.09% fee) — all in same tx"},{"step":4,"action":"Profit withdrawn","details":"Remaining USDC balance is your profit — tx reverts if insufficient"}],"loan_amount_usd":100000,"strategy_summary":"Aave V3 Base flash loan: borrow $100,000 USDC, execute DEX arbitrage, repay with 0.09% fee ($90), keep profit.","estimated_gas_usd":0.5,"gas_estimate_gwei":250000,"onchain_resources":[{"url":"https://docs.aave.com/developers/guides/flash-loans","name":"Aave V3 Flash Loan Docs"},{"url":"https://basescan.org/address/0xA238Dd80C259a72e81d7e4664a9801593F98d1c5","name":"Aave Base Pool"}],"pulse_suggestions":[],"required_approvals":[{"token":"USDC","amount":"amount + fee after execution","spender":"0xA238Dd80C259a72e81d7e4664a9801593F98d1c5"}],"net_profit_estimate_usd":847.5,"executor_contract_template":"interface IFlashLoanSimpleReceiver {\n  function executeOperation(address asset, uint256 amount, uint256 premium, address initiator, bytes calldata params) external returns (bool);\n}\n\ncontract FlashArb is IFlashLoanSimpleReceiver {\n  address constant AAVE_POOL = 0xA238Dd80C259a72e81d7e4664a9801593F98d1c5;\n  // ... implement executeOperation with your arb logic\n}"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.75","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.75/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.75","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.75","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8wK5bHxeGse6AVizJoaGW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.75","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates zero-capital execution calldata for Aave V3 and Balancer flash loans, including executor contract templates for flash loan arbitrage strategies","exampleAgentPrompt":"Build me a zero-capital flash loan strategy on Aave V3 to borrow 50,000 USDC, execute an arbitrage between Uniswap and Curve, and give me the executor contract template and calldata I can deploy right away.","exampleUseCases":null,"resultDescription":"Returns ready-to-use flash loan execution calldata and executor contract templates configured for Aave V3 or Balancer flash loans, enabling zero-capital arbitrage execution on-chain without requiring upfront liquidity.","failureModes":["Unsupported flash loan protocol specified — only Aave V3 and Balancer are supported","Invalid token address or unsupported asset for flash loan","Loan amount exceeds protocol liquidity limits","Missing or malformed strategy parameters resulting in invalid calldata","Payment of 0.75 USDC not processed — x402 payment required","Strategy configuration produces unprofitable execution path"],"whenToPreferThis":"Use this endpoint when you need to generate the actual on-chain calldata and smart contract templates for executing a flash loan arbitrage strategy with zero upfront capital, specifically targeting Aave V3 or Balancer protocols. Prefer this over the DEX price arbitrage or CEX arbitrage endpoints when you already have an opportunity identified and need the execution layer artifacts (calldata + contract) rather than opportunity discovery.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:35:40.515Z","isFirstParty":false}