{"uid":"cap_6dkXaRtRXz5fGfXbUszxV","slug":"basebuilder-trading-mempool-sandwich-detection-396623fb","name":"BaseBuilder Trading Mempool Sandwich Detection","description":"BaseBuilder Trading API hub - 20 paid endpoints","url":"https://bb-trading-gold.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_apLFrv2ssAkiSnrdP90il","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 patterns in blockchain mempool transactions","exampleAgentPrompt":"Check the mempool for any sandwich attacks targeting this pending transaction 0xabc123... on Base — I want to know if there's a front-run and back-run bot surrounding it and how much profit the attacker is extracting.","exampleUseCases":[{"title":"Protect DEX trades from sandwich attacks","prompt":"I'm about to execute a large swap on Uniswap v3 on Base — can you scan the mempool right now and tell me if any sandwich bots are already positioning themselves around similar trades? I need to know the risk score before I submit."},{"title":"Monitor wallet for MEV exploitation","prompt":"My trading wallet keeps getting sandwiched on every transaction I send. Can you analyze the last few pending transactions in the mempool and show me which bots are consistently front-running and back-running my trades? I want to see how much they're profiting from me."},{"title":"Identify sandwich bot patterns","prompt":"I've noticed a specific contract address keeps profiting from sandwich attacks on Base. Can you scan the mempool for recent sandwich patterns targeting tokens in my portfolio and identify if this same attacker is involved? Show me the estimated profits and which transactions are at highest risk."}],"resultDescription":"Returns details about detected sandwich attack patterns including front-run and back-run transactions surrounding the victim transaction, estimated attacker profit, risk score, and relevant wallet/contract addresses involved in the MEV attack.","failureModes":["Transaction hash not found in mempool — returns 404 or empty result","Invalid transaction data format — returns 400 bad request","Mempool data temporarily unavailable — returns 503","Transaction already confirmed, no longer in mempool — returns stale or no data","Payment not completed — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to detect or analyze sandwich attacks specifically in the blockchain mempool, particularly on Base network. Prefer this over generic MEV tools when you need real-time pending transaction analysis for sandwich patterns specifically (vs. front-running only or arbitrage MEV).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T00:37:39.598Z","isFirstParty":false,"canonicalSlug":"basebuilder-trading-mempool-sandwich-detection-396623fb"}