{"uid":"cap_2Ips0RL1BxKXMUJ8LX8Ql","slug":"x402-calldata-safety-decoder-6695bc13","name":"x402 Calldata Safety Decoder","description":"Decode raw calldata into its function + arguments and flag dangerous patterns (unlimited approve, setApprovalForAll, permit, transferFrom). Send { data }. Understand what a transaction actually does before signing.","url":"https://x402-services-production.up.railway.app/api/safety/decode","method":"POST","headers":{},"bodySchema":{"type":"object","required":["data"],"properties":{"data":{"type":"string","description":"0x calldata blob"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ACsLAG7SwEyYVCauRViO6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","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 its function name and arguments, and flags dangerous transaction patterns like unlimited approvals, setApprovalForAll, permit, and transferFrom.","exampleAgentPrompt":"Before I sign this transaction, can you decode this calldata and tell me if it contains anything dangerous like an unlimited approval or setApprovalForAll? Here's the data: 0x095ea7b3000000000000000000000000deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","exampleUseCases":null,"resultDescription":"Returns the decoded function name and its parsed arguments from the raw calldata, along with boolean or labeled flags indicating whether the transaction contains dangerous patterns such as unlimited ERC-20 approve, setApprovalForAll, permit signatures, or transferFrom calls — helping the user understand what a transaction actually does before signing it.","failureModes":["Invalid or malformed calldata returns a parse error","Unrecognized function selector (not in ABI registry) may return partial decode or unknown function name","Empty or missing 'data' field returns a 400 validation error","Very short calldata (less than 4 bytes) cannot identify a function selector","Network timeout or service unavailability returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need to understand what an EVM transaction actually does before signing it — especially when the calldata is opaque hex and you want to detect dangerous approval patterns. Ideal for wallet security checks, DeFi transaction review, phishing detection, and any agentic flow that needs to gate on transaction safety before proceeding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:51:19.307Z","isFirstParty":false}