{"uid":"cap_3KdJcifEWrykpI1Nwp_iq","slug":"crypto-microdata-test-validation-endpoint-x402-05740d77","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/v1/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_8-0oX8r4_lvhRQfl4ajaG","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":"A pay-per-call test/validation endpoint that verifies x402 micropayment flow and returns next available crypto data endpoints for trading/onchain AI agents.","exampleAgentPrompt":"Run a test call to the crypto microdata x402 endpoint with echo tag 'agent-test-1' and test run ID 'run-001' so I can confirm my USDC micropayment flow is working and see which data endpoints are available next.","exampleUseCases":[{"title":"Validate agent payment pipeline","prompt":"Before my trading bot starts making real calls, run a test ping to the crypto microdata x402 service with echo 'trading-bot-v2' and test run ID 'pre-flight-01' to confirm the USDC micropayment on Base is going through correctly."},{"title":"Discover available crypto data routes","prompt":"Call the x402 crypto microdata test endpoint and tell me which data endpoints like base gas, Hyperliquid funding, or token risk scores are available for my agent to call next."},{"title":"Correlate validation run for QA logging","prompt":"Run a validation test on the crypto microdata x402 API using test run ID 'qa-session-42' and echo 'qa-agent' so I can log the receipt ID and confirm payment verification before my QA suite proceeds."}],"resultDescription":"Returns a JSON object with a timestamp, payment verification boolean, a receipt ID, the echoed test run ID, a 'nextAction' hint, and an array of suggested next endpoint paths (e.g. /crypto/base-gas, /crypto/liquidations, /crypto/simulate) that the agent can call after verifying the payment flow.","failureModes":["Payment not verified — x402 USDC payment on Base failed or was not included, returns paymentVerified: false","Invalid query parameter types — echo or testRunId exceed max length, returns 400-level error","Worker unavailable — Cloudflare Worker cold start or downtime returns 5xx","Malformed request — non-GET method returns method not allowed","No payment header — calling without x402 payment returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to validate that your x402 micropayment integration (USDC on Base) is correctly configured before making real paid data calls. It is the right choice for pre-flight checks, QA runs, and agent onboarding flows. Prefer this over jumping directly to data endpoints when you want to confirm payment receipt and discover which crypto microdata routes are available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:36:54.190Z","isFirstParty":false,"canonicalSlug":"crypto-microdata-test-validation-endpoint-x402-5314d53d"}