{"uid":"cap_4r8MPenNd8Gdusc0QOG7G","slug":"basebuilder2-trading-mempool-sandwich-detection-b0192d72","name":"Basebuilder2 Trading - Mempool Sandwich Detection","description":"BaseBuilder Trading API hub - 20 paid endpoints","url":"https://bbx-trading.vercel.app/api/mempool/sandwich?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.115906","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.115906/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.115906","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.115906","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PKu-tc001G4GDHes7CFwa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.115906","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects and analyzes sandwich attack opportunities or risks in the mempool for a given transaction","exampleAgentPrompt":"Scan the mempool for sandwich attack risk on my pending USDC/ETH swap — I'm trading 5 ETH with 0.5% slippage tolerance, and I want to know if there are any active bots that could front-run or back-run this transaction.","exampleUseCases":[{"title":"Pre-trade MEV vulnerability check","prompt":"Before I submit this 10 ETH swap on Uniswap, can you check the mempool to see if there's any sandwich bot activity targeting this WETH/USDC pair right now? I'm using 1% slippage."},{"title":"DeFi bot operator monitoring","prompt":"Scan the current mempool for profitable sandwich attack opportunities on large pending swaps — I want to see any transactions with high slippage that could be sandwiched for more than 0.1 ETH profit."},{"title":"Transaction safety audit before submission","prompt":"I'm about to submit a 50,000 USDC to DAI swap with 0.8% slippage — can you run a sandwich attack detection on it against live mempool data to tell me if I should adjust my parameters or use a private RPC?"}],"resultDescription":"Returns analysis of sandwich attack risk or opportunity for the specified transaction, including identification of potential front-run and back-run positions, estimated profit/loss exposure, active bot addresses, and recommended mitigations or confirmation that the transaction is safe to proceed.","failureModes":["Invalid or missing transaction parameters returns 400 error","Mempool data unavailable or stale during network congestion","Payment of 0.115906 USDC not fulfilled returns 402","Transaction already mined before analysis completes","Unsupported chain or token pair returns error","Rate limiting if too many requests submitted rapidly"],"whenToPreferThis":"Use this endpoint when you need real-time sandwich attack detection or MEV risk analysis for DeFi transactions before or during mempool submission. Prefer this over generic mempool APIs when you specifically need sandwich attack pattern recognition with profit/loss estimates. Best suited for DeFi traders, MEV researchers, and bot operators on the BBX Trading platform who want structured sandwich analysis rather than raw mempool data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T00:37:20.745Z","isFirstParty":false,"canonicalSlug":"basebuilder2-trading-mempool-sandwich-detection-b0192d72"}