{"uid":"cap_CNQLp0WUE2yN5TMDLS3Rz","slug":"defi-intel-agent-gateway-wasm-python-sandbox-4f491a1d","name":"DeFi Intel Agent Gateway – WASM Python Sandbox","description":"Execute a SAFE Python expression in an edge sandbox. CRITICAL: do NOT use for arbitrary file I/O or network access. Returns stdout, result and duration_ms. — $0.005 USDC/call on Base. Pay-per-call via x402 — no API key, no account. Free samples daily.","url":"https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/code/wasm-python-sandbox","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kMg714-b2v2p8c51_Mx8d","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Execute a safe Python expression in an edge WASM sandbox and return stdout, the result value, and execution duration in milliseconds","exampleAgentPrompt":"Can you run this Python expression for me in a safe sandbox: `sum([x**2 for x in range(1, 11)])` and tell me the result and how long it took?","exampleUseCases":[{"title":"DeFi yield calculation via Python","prompt":"Run this Python snippet for me in your sandbox: `principal = 10000; apy = 0.085; years = 2; round(principal * (1 + apy)**years, 2)` — I want to know the compounded value."},{"title":"Quick statistical computation on token data","prompt":"Can you execute this Python expression in your edge sandbox: `import statistics; data=[1.2,3.4,2.1,4.5,3.3]; statistics.mean(data)` and give me the mean, the stdout, and how many milliseconds it took?"},{"title":"Validate a price-impact formula in Python","prompt":"Run this Python code for me safely: `buy=1000; reserve=500000; price_impact=buy/(reserve+buy); round(price_impact*100,4)` — I need the result to sanity-check a swap estimate."}],"resultDescription":"A JSON object containing: `stdout` (any printed output from the expression), `result` (the evaluated return value of the expression), and `duration_ms` (wall-clock execution time in milliseconds). No file system or network side-effects are produced.","failureModes":["Unsafe code detected (file I/O or network access attempted) — sandbox refuses execution","Syntax error in the submitted Python expression — returns parse error","Execution timeout if the expression runs too long","Payment failure via x402 protocol if USDC balance is insufficient","Expression produces an unserializable result type — result field may be null or stringified"],"whenToPreferThis":"Choose this endpoint when you need to evaluate a Python expression or small snippet in a stateless, sandboxed edge runtime without provisioning any infrastructure. It is ideal for DeFi formula validation, quick numeric computation, data transformation logic, or any situation where you want safe, isolated Python execution billed per-call with no API key. Avoid it for any code requiring file I/O, network requests, heavy libraries, or persistent state.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:35:07.953Z","isFirstParty":false}