{"uid":"cap_hcxFinMkWbnYBlaV5mVBE","slug":"event-log-decoding-payment-verification-for-base-transactions-090c11f7","name":"Event Log Decoding & Payment Verification for Base Transactions","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/event-log-decoding?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_WhYgDHzqqkgbhjxJVodC6","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":"Decodes a Base blockchain transaction by hash, returning transfer logs, method name, gas, and x402 payment verification status","exampleAgentPrompt":"Can you decode Base transaction 0x3ea6d07f7e990ba4c2289487cd12ea41b6e13b48518fa38b24de2afd1df1d8ca and confirm that 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 received at least 0.002 USDC as an x402 settlement?","exampleUseCases":[{"title":"Verify x402 micro-payment before serving response","prompt":"Before I release the data, can you check that transaction 0x3ea6d07f7e990ba4c2289487cd12ea41b6e13b48518fa38b24de2afd1df1d8ca on Base actually sent 0.002 USDC to 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 and was marked as a verified x402 settlement?"},{"title":"Audit onchain transfer log for agent accounting","prompt":"Decode Base tx 0x3ea6d07f7e990ba4c2289487cd12ea41b6e13b48518fa38b24de2afd1df1d8ca and give me all the token transfers, the method called, gas used, and the block timestamp so I can log it in my agent's payment ledger."},{"title":"Confirm counterparty payment receipt","prompt":"A trading bot says it paid me — can you look up Base transaction 0x3ea6d07f7e990ba4c2289487cd12ea41b6e13b48518fa38b24de2afd1df1d8ca and tell me exactly how much USDC arrived at my wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 and whether payment_verified is true?"}],"resultDescription":"Returns a JSON object with the transaction hash, block number, chain, decoded method name (e.g. 'aggregate3 (Multicall3)'), status, gas used, fee in ETH, timestamp, all ERC-20 transfers (from/to/token/amount/symbol), ETH value, confirmations, a usdc_received map keyed by recipient address, payment_verified boolean, and is_x402_settlement flag.","failureModes":["Invalid or malformed tx hash (not matching ^0x[0-9a-fA-F]{64}$) returns a 400 error","Transaction not found on Base returns a 404 or empty result","Transaction still pending (0 confirmations) may return unconfirmed or error state","expect_to / expect_usdc mismatch returns payment_verified: false rather than an error","x402 payment failure (insufficient USDC micropayment) blocks the call entirely","Network timeouts from Base RPC nodes may cause intermittent 5xx responses"],"whenToPreferThis":"Use this endpoint when an AI agent needs to cryptographically confirm that a Base blockchain transaction settled correctly — particularly for x402 micro-payment verification before releasing a service or data. It is the right choice when you have a tx hash and need decoded transfer logs plus a structured payment_verified flag, rather than raw RPC data. Prefer it over generic block explorers when you need machine-readable JSON with USDC receipt confirmation in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:47.506Z","isFirstParty":false,"canonicalSlug":"event-log-decoding-payment-verification-for-base-transactions-090c11f7"}