{"uid":"cap_dViLKzk5eGQbNY73alRUw","slug":"x402-payment-heartbeat-validation-test-88777b31","name":"x402 Payment Heartbeat / Validation Test","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/test?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":{"echo":{"type":"string","examples":["my-agent-1"],"maxLength":64,"description":"Optional string echoed back (correlate your test call)"},"testRunId":{"type":"string","examples":["run-001"],"maxLength":100,"description":"Optional caller-supplied correlation ID for a bounded validation run (echoed back)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"t":"2026-10-28T14:00:00Z","ok":true,"next":["/crypto/simulate","/crypto/ens","/crypto/liquidations?coin=BTC","/crypto/base-gas"],"receiptId":"rcpt_0b9f6c1e2a7d4c55","testRunId":"run-001","nextAction":"call_paid_data","paymentVerified":true}},"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_gY2RycmEcKp370hdDTBVD","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":"Cheapest end-to-end x402 payment verification on Base USDC ($0.001), returning a payment-confirmed receipt and suggested next endpoints to call.","exampleAgentPrompt":"Run a $0.001 x402 payment test to confirm my Base USDC client is working end-to-end, and tag this run with testRunId 'run-001' so I can correlate the receipt.","exampleUseCases":[{"title":"Pre-flight x402 client check","prompt":"Before I start calling the paid crypto data endpoints, do a quick $0.001 x402 heartbeat call tagged testRunId 'preflight-2024' to make sure my Base USDC payment setup is actually working."},{"title":"CI/CD payment integration test","prompt":"Run the cheapest x402 validation call available with echo set to 'ci-build-447' so I can confirm the payment pipeline passes before merging this deployment."},{"title":"Discover available paid endpoints","prompt":"Fire a test ping against the x402 crypto microdata service — use testRunId 'discovery-run-1' — and tell me what next endpoints it recommends I call after payment is verified."}],"resultDescription":"A JSON object with: ok (true), paymentVerified (true), receiptId (unique receipt string for the $0.001 USDC payment), testRunId (echoed correlation ID), nextAction (suggested action string), and next_calls (array of recommended paid endpoint paths to call next).","failureModes":["Payment not received or insufficient USDC balance — returns 402 Payment Required","Invalid or missing x402 payment header — returns 402 with payment instructions","testRunId or echo value exceeds maximum length (100 / 64 chars) — may return 400 Bad Request","Network or Cloudflare Worker downtime — returns 5xx error","Malformed query parameters — silently ignored or 400 response"],"whenToPreferThis":"Choose this endpoint when you need the absolute cheapest ($0.001) way to verify an x402 payment client works end-to-end on Base USDC before committing to more expensive paid calls. It is the canonical integration smoke-test for the x402 protocol and doubles as a service-discovery call, returning recommended next endpoints. Prefer it over calling a real data endpoint for testing purposes, as those cost more and produce data you may not need during validation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:41.858Z","isFirstParty":false,"canonicalSlug":"x402-payment-heartbeat-validation-test-88777b31"}