{"uid":"cap_OTwON4slGgma2f4mJBOZ-","slug":"crypto-microdata-for-agents-ping-health-check-x402-4c9504b3","name":"Crypto Microdata for Agents – Ping/Health Check (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/ping?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_YLfe_DTYtd-E0of92Fe28","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":"Health-check and service-discovery ping that verifies x402 payment flow and returns a list of available paid crypto-data endpoints.","exampleAgentPrompt":"Before I start pulling live crypto data, ping the crypto microdata service with correlation ID 'agent-boot-01' to confirm my x402 USDC payment works and get the list of endpoints I can call next.","exampleUseCases":[{"title":"Agent boot self-check before trading","prompt":"At startup, run a quick ping against the crypto microdata API with test run ID 'boot-run-001' so I can confirm my x402 wallet payment is working and see which data endpoints are available to call."},{"title":"CI validation of x402 payment pipeline","prompt":"Run a connectivity and payment verification ping on the crypto microdata service with echo tag 'ci-test-42' so I can confirm the x402 micropayment flow is healthy in our staging pipeline."},{"title":"Discover available crypto data routes","prompt":"Hit the crypto microdata ping endpoint so I can see what paid data routes are available — things like Base gas, token risk scores, Hyperliquid book data, and kimchi premium — before I decide which ones my agent needs."}],"resultDescription":"Returns a JSON object with: ok (boolean health status), t (ISO-8601 timestamp), paymentVerified (boolean confirming x402 USDC payment processed), receiptId (payment receipt string), testRunId (echoed correlation ID), next (array of sibling endpoint paths available to call), and nextAction hint string.","failureModes":["Payment not received or insufficient USDC balance → 402 Payment Required with x402 challenge","Invalid or malformed echo/testRunId (exceeds maxLength) → 400 Bad Request","Worker cold-start latency spike → increased response time but no error","Base network congestion delaying payment settlement → payment verification timeout","Worker region outage → 503 Service Unavailable"],"whenToPreferThis":"Use this endpoint as the first call when bootstrapping a trading or onchain AI agent: it simultaneously verifies that the agent's x402/USDC micropayment stack is functional, returns a payment receipt for accounting, and provides a discovery manifest of available paid data endpoints — all for $0.001 USDC. Prefer it over hitting paid data endpoints directly when you need to confirm connectivity or payment plumbing before committing to more expensive calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:09.543Z","isFirstParty":false,"canonicalSlug":"crypto-microdata-for-agents-ping-health-check-x402-f6e3e67e"}