{"uid":"cap_dNG0RVz9XaktlQlsywWWb","slug":"evm-calldata-decoder-with-risk-flags-792c5f8d","name":"EVM Calldata Decoder with Risk Flags","description":"Decode EVM calldata into typed function args with deterministic risk flags (unlimited approvals, admin actions)","url":"https://evm-canon-base.onrender.com/decode","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["data"],"properties":{"to":{"type":"string"},"data":{"type":"string","description":"0x-prefixed calldata"},"value":{"type":"string","description":"native value in wei"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4KAh3n-lz9OPuKU6TxBnj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 into typed function arguments and attaches deterministic risk flags for dangerous patterns like unlimited token approvals and admin actions","exampleAgentPrompt":"Can you decode this EVM calldata for me — 0x095ea7b3000000000000000000000000<router>ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff — and tell me if it contains an unlimited approval or any other risk flags?","exampleUseCases":[{"title":"Wallet safety check before signing","prompt":"Before I sign this transaction, decode the calldata 0x23b872dd000000000000000000000000<from>000000000000000000000000<to>000000000000000000000000000000000000000000000000002386f26fc10000 and tell me what function it's calling and whether there are any dangerous flags I should know about."},{"title":"Unlimited approval detection in DeFi","prompt":"I just got a MetaMask popup — here's the calldata: 0x095ea7b3000000000000000000000000<spender>ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff. Is this an unlimited token approval? Flag any risks."},{"title":"Admin action audit on contract call","prompt":"Our security tool flagged this calldata from an onchain transaction: 0x8456cb59. Decode it and tell me if it's an admin or privileged action like a pause or ownership transfer."}],"resultDescription":"A structured JSON object containing the decoded function name, an array of typed arguments (with names, types, and values), and a set of deterministic risk flags indicating whether the call involves an unlimited approval, an admin/privileged action, or other dangerous patterns.","failureModes":["Malformed or non-ABI-compliant hex calldata returns a parse error","Unknown function selector not present in the ABI registry returns a null function name with undecoded args","Calldata shorter than 4 bytes (no selector) returns an error","Payment failure or missing x402 header results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to programmatically decode arbitrary EVM calldata and simultaneously assess its risk profile — especially for wallet safety checks, transaction pre-screening, or DeFi approval audits. Prefer it over a generic ABI decoder when deterministic risk classification (unlimited approvals, admin actions) is required alongside decoding, without having to implement that logic yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:33:34.126Z","isFirstParty":false}