{"uid":"cap_GGqwuXa080qY6fD2szbzN","slug":"crypto-microdata-test-validation-endpoint-x402-5314d53d","name":"Crypto Microdata Test/Validation Endpoint (x402)","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/x402/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_la9TVVY6Dvx-BFBnX4EA_","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":"Validates x402 micropayment connectivity and returns a receipt plus a menu of available crypto data endpoints for AI agents to call next.","exampleAgentPrompt":"Run a quick x402 test call against the crypto microdata service with my correlation ID 'agent-run-007' so I can confirm my USDC micropayment on Base goes through and see which data endpoints I can call next.","exampleUseCases":[{"title":"Agent payment connectivity smoke test","prompt":"Before my trading agent starts pulling live crypto data, run a test x402 call tagged 'smoke-001' to confirm my USDC payment on Base is going through and give me the receipt ID."},{"title":"Discover available crypto microdata endpoints","prompt":"I want to know which paid crypto data endpoints are available on this service — run the x402 test call and show me the 'next' list it returns so I can plan which ones to call."},{"title":"Validate x402 integration before production deployment","prompt":"We're about to deploy our onchain agent to production — can you do one x402 test probe with run ID 'pre-prod-check' to verify the payment flow works and return the verified receipt?"}],"resultDescription":"Returns a JSON object confirming paymentVerified=true, a unique receiptId, the echoed testRunId, a timestamp, and a 'next' array listing available paid crypto data endpoint paths (e.g. /crypto/base-gas, /crypto/simulate, /crypto/liquidations) plus a nextAction hint indicating the agent should proceed to call paid data endpoints.","failureModes":["x402 payment not included or invalid → 402 Payment Required with payment details","USDC balance insufficient on Base → payment fails, 402 returned","Invalid or malformed query parameters → 400 Bad Request","echo or testRunId exceed character limits (64/100) → validation error","Worker unavailable or cold-start timeout → 503 or timeout","Payment received but not yet confirmed on-chain → delayed or failed paymentVerified flag"],"whenToPreferThis":"Use this endpoint when you need to verify that your x402 micropayment infrastructure (USDC on Base) is correctly wired up before committing to real paid crypto data calls. It is the cheapest possible validation ($0.001 USDC) and doubles as a service discovery call that returns the menu of available data endpoints. Prefer this over calling a paid data endpoint blind when you are setting up a new agent, testing a new wallet, or running a pre-flight check before a production deployment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:23.948Z","isFirstParty":false,"canonicalSlug":"crypto-microdata-test-validation-endpoint-x402-5314d53d"}