{"uid":"cap_ASID5y7L1JnRIzgHi7AbF","slug":"x402-testbed-chaos-failure-injection-endpoint-adb9b118","name":"x402 Testbed — Chaos/Failure Injection Endpoint","description":"x402 test endpoint (GET) — failure injection with query params only. Query param failRate (0-1): the request fails with 500 BEFORE payment is taken, so you can test that your x402 client never treats a 5xx as paid and retries without double-paying.","url":"https://health-api.tail11a58f.ts.net/chaos?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"failRate":{"type":"number","description":"Probability (0-1) of injected failure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_B6nqiJ1w1lJa59wKa4FFS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Injects controlled server-side failures (HTTP 500) before payment is processed, allowing x402 clients to verify they never treat a 5xx response as a successful paid call.","exampleAgentPrompt":"Run a chaos test against the x402 testbed with a failRate of 0.8 so I can verify my payment client never double-pays when it gets a 500 error back.","exampleUseCases":[{"title":"Pre-payment 500 retry safety check","prompt":"Hit the x402 chaos endpoint with failRate set to 1.0 so every request fails before payment — I want to confirm my client never marks a 500 as paid and retries without charging again."},{"title":"Probabilistic failure integration test","prompt":"Run 20 calls to the x402 chaos endpoint with a failRate of 0.5 and track how my client handles the mix of successes and injected failures — I need to make sure it never double-pays on any of the 500s."},{"title":"CI pipeline fault-injection gate","prompt":"As part of my CI pipeline, call the x402 chaos endpoint with failRate 0.9 to make sure our payment client's error-handling passes before we ship — confirm no duplicate charges occur on any of the failures."}],"resultDescription":"When failure is injected (based on failRate probability), the endpoint returns an HTTP 500 error before any payment is deducted. This lets the caller verify that their x402 client correctly identifies the failure as pre-payment and does not record or retry the call as a paid transaction.","failureModes":["Injected 500 at configured failRate — expected behavior, not a true error","failRate out of [0,1] range may cause undefined behavior","Network timeout if the Tailscale node is unreachable","No payment taken on any 500 response by design — if payment IS deducted, that is an x402 client bug"],"whenToPreferThis":"Use this endpoint specifically when building or validating an x402 payment client and you need to confirm it handles pre-payment server errors (5xx) without double-charging. It is the canonical tool for chaos/fault-injection testing in the x402 protocol stack, distinct from the echo sibling endpoint which tests successful paid round-trips.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:37:56.966Z","isFirstParty":false,"canonicalSlug":"x402-testbed-chaos-failure-injection-endpoint-adb9b118"}