{"uid":"cap_JcXrqMY5DFK7b9kCFsIJk","slug":"arbipulse-flash-loan-strategy-builder-7aa868c2","name":"ArbiPulse Flash Loan Strategy Builder","description":"Zero-capital flash-loan strategy builder — execution calldata for Aave V3 and Balancer with executor-contract templates. For autonomous DeFi agents.","url":"https://arbipulse.theaslangroupllc.com/api/flash?utm_source=zero.xyz","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","errors":{"400":{"example":{"error":"invalid request"},"description":"Invalid or missing parameter(s). Returned before the payment gate on paid requests, so a malformed call is never charged. JSON body: { error: <what is wrong and how to fix it> } plus usage hints."},"402":{"description":"Payment required — x402 v2 challenge; the accepts array lists scheme, network, and amount. Retry the same request with a PAYMENT-SIGNATURE (v2) or X-PAYMENT (v1) header. Verification is free."},"500":{"example":{"error":"upstream_failed"},"description":"Unexpected server error. If a payment settled without a usable result, contact info@theaslangroupllc.com with the settlement tx hash for a re-run or credit."}},"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":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":{"p10Cents":"75.0000","medianCents":"75.0000","p90Cents":"75.0000","minCents":"75.0000","maxCents":"75.0000","p95Cents":"75.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"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_9gwhqbncjPf9yGcShnAqe","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 flash-loan execution calldata and executor-contract templates targeting Aave V3 and Balancer for autonomous DeFi agents","exampleAgentPrompt":"Generate me a zero-capital flash loan strategy for a USDC/ETH arbitrage using Aave V3 — I need the full execution calldata and an executor contract template I can deploy directly.","exampleUseCases":null,"resultDescription":"Returns execution calldata ready for on-chain submission, an executor smart contract template, flash loan parameters (amounts, assets, protocols), and gas estimates — all targeting Aave V3 or Balancer, structured for direct autonomous agent execution.","failureModes":["Invalid or unsupported asset pair — no calldata returned","Protocol unavailable or insufficient liquidity — strategy not constructable","Missing required strategy parameters — 400-level error","Flash loan amount exceeds available pool liquidity","Malformed request or unsupported chain — error response"],"whenToPreferThis":"Use this endpoint when an autonomous DeFi agent needs ready-to-execute flash loan calldata and contract templates with zero capital requirements, specifically targeting Aave V3 or Balancer protocols, rather than just opportunity discovery or yield comparison endpoints.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T06:45:42.232Z","isFirstParty":false,"canonicalSlug":"arbipulse-flash-loan-strategy-builder-7aa868c2"}