{"uid":"cap_S0KTDLSn7GstRuefOnMDq","slug":"crypto-microdata-for-agents-v1-explain-x402-payment-verifier-ac481eec","name":"Crypto Microdata for Agents – /v1/explain (x402 Payment Verifier)","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/explain?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","required":["hash"],"properties":{"hash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$","examples":["0x3ea6d07f7e990ba4c2289487cd12ea41b6e13b48518fa38b24de2afd1df1d8ca"],"description":"Base tx hash"},"expect_to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Optional: payee you expect to receive USDC"},"expect_usdc":{"type":"number","minimum":0,"description":"Optional: minimum USDC amount expected (with expect_to)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"0xca11bde05977b3631167028862be2a173976ca11","from":"0xc6699d2aada6c36dfea5c248dd70f9cb0235cb63","hash":"0x3ea6d07f7e990ba4c2289487cd12ea41b6e13b48518fa38b24de2afd1df1d8ca","block":53220068,"chain":"base","method":"aggregate3 (Multicall3)","status":"success","fee_eth":6.5e-7,"gas_used":92312,"timestamp":"2026-10-28T23:18:03Z","transfers":[{"to":"0xe4be4d0bd82d8e68203deff81f79ede0529f2617","from":"0xa1d1c0cf717402ff3651aa4873ccf96410b01978","token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":0.002,"symbol":"USDC"}],"value_eth":0,"confirmations":21764,"usdc_received":{"0xe4be4d0bd82d8e68203deff81f79ede0529f2617":0.002},"payment_verified":true,"is_x402_settlement":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CnD1HX_Lf1NSKDd0HH7ho","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Verifies and decodes a Base blockchain transaction hash, confirming x402 USDC payment settlement and returning full transfer details including amounts, addresses, and confirmation count.","exampleAgentPrompt":"Can you verify whether this Base transaction 0x3ea6d07f7e990ba4c2289487cd12ea41b6e13b48518fa38b24de2afd1df1d8ca actually settled a USDC payment to 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 for at least 0.002 USDC and confirm it's a valid x402 settlement?","exampleUseCases":[{"title":"Confirm x402 micropayment before serving data","prompt":"Before I release the premium crypto data to this agent, check that tx hash 0x3ea6d07f7e990ba4c2289487cd12ea41b6e13b48518fa38b24de2afd1df1d8ca actually paid 0.002 USDC to my wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 and is flagged as a valid x402 settlement."},{"title":"Audit USDC transfer on Base chain","prompt":"Look up Base transaction 0x3ea6d07f7e990ba4c2289487cd12ea41b6e13b48518fa38b24de2afd1df1d8ca and tell me who sent USDC, how much, to which address, what block it landed in, and how many confirmations it has so far."},{"title":"Automated payment receipt validation for agent pipeline","prompt":"My trading agent just submitted a USDC payment — can you decode tx 0x3ea6d07f7e990ba4c2289487cd12ea41b6e13b48518fa38b24de2afd1df1d8ca on Base and confirm payment_verified is true and usdc_received is at least 0.002 before we proceed?"}],"resultDescription":"Returns a JSON object with the full decoded transaction: to/from addresses, tx hash, block number, chain (base), contract method called, status (success/fail), gas used, ETH fee, timestamp, token transfer list (token address, symbol, amount, sender, recipient), ETH value, confirmation count, usdc_received map per address, payment_verified boolean, and is_x402_settlement boolean.","failureModes":["Invalid tx hash format (must match ^0x[0-9a-fA-F]{64}$) returns 400 validation error","Transaction not found on Base returns empty or 404 response","Transaction pending/unconfirmed may return status other than success","expect_to or expect_usdc mismatch returns payment_verified: false","Network timeout if Base RPC is slow or congested","Non-USDC transfer returns usdc_received as empty object"],"whenToPreferThis":"Use this endpoint when an AI agent or automated service needs to verify that a specific Base blockchain transaction actually transferred the expected USDC amount to the expected payee — particularly in x402 pay-per-call flows where the server must confirm payment before releasing data. Prefer this over generic block explorers when you need a machine-readable JSON response with a clear payment_verified flag and x402 semantic tagging, without managing API keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:22.841Z","isFirstParty":false,"canonicalSlug":"crypto-microdata-for-agents-v1-explain-x402-payment-verifier-ac481eec"}