{"uid":"cap_jzuJFqCLqqsFolruxa-oV","slug":"stealthmark-polymarket-basket-formal-verifier-3d1b4cd7","name":"StealthMark Polymarket Basket Formal Verifier","description":"Autonomous Z3 Formal Invariant Prover (ERC-4626 Vaults, Polymarket Baskets, ZK Circuits, Differential Consensus) &amp; 100-Point Perimeter Security Gateway on Base Mainnet (x402 v2).","url":"https://gateway.stealthmark.io/x402/verify-polymarket-basket?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fee_bps":{"type":"integer","default":0},"kalshi_rules":{"type":"string","description":"Raw resolution rules for Kalshi market"},"kalshi_ticker":{"type":"string","description":"Kalshi market ticker"},"polymarket_slug":{"type":"string","description":"Polymarket market slug"},"payout_per_share":{"type":"number","default":10000},"polymarket_rules":{"type":"string","description":"Raw resolution rules for Polymarket market"},"outcome_ask_prices":{"type":"array","items":{"type":"number"},"description":"List of best ask prices across all basket outcomes"},"custom_conversion_formula":{"type":["string","null"]}}},"responseSchema":{"type":"json","example":{"verified":{"type":"boolean"},"risk_grade":{"type":"string"},"viral_x_alert":{"type":["string","null"]},"arb_trap_witness":{"type":["object","null"]},"arb_trap_detected":{"type":"boolean"},"arbitrage_edge_atomic":{"type":"integer"},"payout_per_share_atomic":{"type":"integer"},"dutch_book_edge_detected":{"type":"boolean"},"total_basket_cost_atomic":{"type":"integer"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rulj5tNujOR1hsmoXeg2a","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formally verifies Polymarket prediction market outcome baskets for arbitrage edges, Dutch book conditions, and pricing invariants using Z3-based formal proofs.","exampleAgentPrompt":"Check this Polymarket basket for Dutch book or arbitrage conditions — the outcome ask prices are [0.45, 0.30, 0.28], payout per share is 10000, and there's no fee.","exampleUseCases":[{"title":"Arbitrage scanner for prediction market baskets","prompt":"I have a Polymarket basket with outcome ask prices [0.52, 0.31, 0.20] and a payout per share of 10000 — can you check if there's a risk-free arbitrage edge or Dutch book condition I can exploit?"},{"title":"Pricing invariant audit before basket trade","prompt":"Before I trade this Polymarket basket, verify the pricing is consistent: outcome ask prices are [0.40, 0.35, 0.27], fee is 50 basis points, payout per share is 10000. Tell me the total basket cost in atomic units and whether it's safe."},{"title":"Custom formula basket verification","prompt":"I want to verify a Polymarket basket using a custom conversion formula — outcome asks are [0.60, 0.42], payout per share is 5000, no fee, and the formula is 'price * 1e6'. Does it pass formal invariant checks and is there any arbitrage edge?"}],"resultDescription":"Returns a JSON object indicating whether the basket passes formal verification, the detected arbitrage edge in atomic units, the payout per share in atomic units, whether a Dutch book condition was detected, and the total basket cost in atomic units.","failureModes":["Invalid or missing outcome_ask_prices array returns a validation error","Prices summing to values far outside [0,1] range may cause prover instability","Malformed custom_conversion_formula string may result in a parsing or execution error","Network or gateway authentication failure returns an x402 payment error","Empty outcome array returns an error or trivially-verified result with zero cost"],"whenToPreferThis":"Use this endpoint when you need formal Z3-backed invariant verification of Polymarket prediction market basket pricing — specifically to detect Dutch book conditions or risk-free arbitrage edges with atomic-precision output. Prefer it over heuristic or off-chain scripts when you need a cryptographically rigorous proof-level guarantee of pricing correctness before executing trades.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:31:17.723Z","isFirstParty":false,"canonicalSlug":"stealthmark-polymarket-basket-formal-verifier-3d1b4cd7"}