{"uid":"cap_8fTvxbA70hcB40aG1EOS1","slug":"crypto-calldata-decoder-risk-analyzer-x402-647896a9","name":"Crypto Calldata Decoder & Risk Analyzer (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/crypto/decode?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":{"to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Optional target contract (token) for symbol/decimals + label"},"data":{"type":"string","pattern":"^0x[0-9a-fA-F]{8,}$","examples":["0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"],"description":"Calldata hex (selector + ABI args). Required unless hash given"},"hash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$","description":"Optional Base tx hash: decode its input instead of data"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","args":[{"type":"address","value":"0x000000000022D473030F116dDEE9F6B43aC78BA3"},{"type":"uint256","value":"115792089237316195423570985008687907853269984665640564039457584007913129639935"}],"risk":"medium","chain":"base","flags":["unlimited_approval"],"amount":"unlimited","spender":"0x000000000022D473030F116dDEE9F6B43aC78BA3","summary":"lets Uniswap Permit2 move ALL USDC from the signer","verdict":"CAUTION","function":"approve(address,uint256)","guidance":"Review the decoded args; simulate with /crypto/base-rpc?method=eth_call before signing.","selector":"0x095ea7b3","unlimited":true,"spender_label":"Uniswap Permit2","signature_source":"builtin"}},"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_b8VZcp2taIfg2eMMTnp1E","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 raw EVM calldata or a Base transaction hash into human-readable function calls with risk assessment, flags, and guidance.","exampleAgentPrompt":"Decode this calldata for me and tell me if it's safe to sign: 0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff — the target contract is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base.","exampleUseCases":[{"title":"Pre-signing approval risk check","prompt":"Before I sign this transaction, decode this calldata and tell me what it's approving and whether it's risky: 0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff on contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913."},{"title":"Decode on-chain transaction by hash","prompt":"Can you decode Base transaction 0x4a3b2c1d... and tell me what function was called, what the arguments were, and whether there are any red flags I should know about?"},{"title":"Identify unlimited token approval","prompt":"I just saw a wallet pop up asking me to approve something — the calldata is 0x095ea7b3 followed by a bunch of hex. Decode it and tell me if it's granting unlimited token access to some contract, and if so what contract."}],"resultDescription":"Returns decoded function name, selector, ABI-typed arguments with values, risk verdict (e.g. CAUTION/OK), risk level (low/medium/high), flags like 'unlimited_approval', a plain-English summary of what the transaction does, spender label if known, and guidance on next steps.","failureModes":["Missing or malformed calldata hex returns validation error","Unknown function selector yields partial decode with signature_source: unknown","Invalid Base tx hash returns not-found or RPC error","Calldata too short (under 4 bytes) cannot be decoded","Payment failure via x402 if USDC balance insufficient"],"whenToPreferThis":"Choose this endpoint when an AI agent or user needs to understand what a raw EVM transaction or calldata blob actually does before signing — especially for risk assessment of token approvals, DeFi interactions, or any unknown contract call on Base. Prefer over generic ABI decoders when you also need risk verdicts, spender labels, and plain-English guidance bundled in one pay-per-call response with no API key setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:03.421Z","isFirstParty":false,"canonicalSlug":"crypto-calldata-decoder-risk-analyzer-x402-647896a9"}