{"uid":"cap_x0zTjN199EKCdEYQA-Uxc","slug":"httpay-flash-loan-rates-api-fad62ab4","name":"HTTPay Flash Loan Rates API","description":"Compare flash loan availability across Base protocols: Aave V3, Balancer V2, Morpho Blue. Returns max borrowable per token, fee %, and gas estimates. Live on-chain data.","url":"https://httpay.xyz/api/flash-loan-rates","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"description":"Compare flash loan availability across Base protocols: Aave V3, Balancer V2, Morpho Blue. Returns max borrowable per token, fee %, and gas estimates. Live on-chain data."}},"example":{"request":{"chain":"base","token":"USDC"},"response":{"meta":{"x402":true,"poweredBy":"Alfred Zhang 🫡"},"chain":"Base","summary":{"lowestFee":"Balancer V2 & Morpho Blue (both 0%)","lowestGas":"Morpho Blue (~140K gas)","recommendation":"For 0% fee: use Balancer V2 or Morpho. For largest USDC/WETH liquidity: check Aave V3. Always verify available balance before executing."},"fetchedAt":"2026-06-12T04:46:36.196Z","liquidity":[{"aave":{"rawWei":"111163213","formatted":"111.1632"},"best":"morpho","morpho":{"rawWei":"160867751339309","formatted":"160.87M"},"symbol":"USDC","address":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","balancer":{"rawWei":"47887078681","formatted":"47.89K"}},{"aave":{"rawWei":"0","formatted":"0"},"best":"aave","morpho":{"rawWei":"0","formatted":"0"},"symbol":"WETH","address":"0x4200000000000000000000000000000000000006","balancer":{"rawWei":"0","formatted":"0"}},{"aave":{"rawWei":"0","formatted":"0"},"best":"aave","morpho":{"rawWei":"0","formatted":"0"},"symbol":"cbBTC","address":"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf","balancer":{"rawWei":"0","formatted":"0"}},{"aave":{"rawWei":"0","formatted":"0"},"best":"aave","morpho":{"rawWei":"0","formatted":"0"},"symbol":"wstETH","address":"0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452","balancer":{"rawWei":"0","formatted":"0"}},{"aave":{"rawWei":"0","formatted":"0"},"best":"aave","morpho":{"rawWei":"0","formatted":"0"},"symbol":"USDbC","address":"0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca","balancer":{"rawWei":"0","formatted":"0"}},{"aave":{"rawWei":"0","formatted":"0"},"best":"aave","morpho":{"rawWei":"0","formatted":"0"},"symbol":"AERO","address":"0x940181a94a35a4569e4529a3cdfb74e38fd98631","balancer":{"rawWei":"0","formatted":"0"}}],"protocols":{"aaveV3":{"docs":"https://docs.aave.com/developers/guides/flash-loans","name":"Aave V3","contract":"0xA238Dd80C259a72e81d7e4664a9801593F98d1c5","interface":"flashLoan(receiverAddress, assets[], amounts[], interestRateModes[], onBehalfOf, params, referralCode)","gasEstimate":"~220,000 gas","protocolFee":{"bps":10000},"flashLoanFee":{"bps":5,"percent":"0.05%","onBorrowOf1M":"$500 USDC"}},"balancerV2":{"docs":"https://docs.balancer.fi/concepts/advanced/flash-loans","name":"Balancer V2","contract":"0xBA12222222228d8Ba445958a75a0704d566BF2C8","interface":"flashLoan(IFlashLoanRecipient recipient, IERC20[] tokens, uint256[] amounts, bytes userData)","gasEstimate":"~160,000 gas","flashLoanFee":{"bps":0,"note":"Balancer flash loans are free — repay principal within the same transaction","percent":"0.00%"}},"morphoBlue":{"docs":"https://docs.morpho.org/morpho/tutorials/flash-loans","name":"Morpho Blue","contract":"0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb","interface":"flashLoan(address token, uint256 assets, bytes calldata data)","gasEstimate":"~140,000 gas","flashLoanFee":{"bps":0,"note":"Morpho Blue flash loans are free. Ideal for capital-efficient arbitrage.","percent":"0.00%"}}}}},"exampleRequest":{"chain":"base","token":"USDC"},"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sQYY42hHww-ekrxRoY7YZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live flash loan availability, max borrowable amounts, fee percentages, and gas estimates across Aave V3, Balancer V2, and Morpho Blue on Base.","exampleAgentPrompt":"Can you compare flash loan availability across Aave V3, Balancer V2, and Morpho Blue on Base — I need to know the max borrowable amount for USDC, the fee percentage, and estimated gas costs for each?","exampleUseCases":null,"resultDescription":"A JSON object comparing flash loan availability across Aave V3, Balancer V2, and Morpho Blue on Base, including maximum borrowable amounts per token, fee percentages, and gas estimates — sourced from live on-chain data.","failureModes":["On-chain RPC unavailable — returns 503 or stale data error","Payment not received or x402 handshake fails — returns 402 Payment Required","Rate limit exceeded — returns 429","Invalid token or unsupported asset — returns empty or partial results","Network congestion causing delayed gas estimates"],"whenToPreferThis":"Use this endpoint when you need a real-time, multi-protocol comparison of flash loan conditions on Base (Aave V3, Balancer V2, Morpho Blue) without needing an API key. Prefer this over building your own on-chain queries when you want aggregated fee and liquidity data in a single call for $0.01 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:07:28.087Z","isFirstParty":false}