{"uid":"cap__SBLBaHtrWajaSzYhgFpN","slug":"api-anchor-x402-com-8ba81db6","name":"EVM Calldata Decoder","description":"Decode raw EVM calldata into function + typed params via openchain.xyz — $0.001 USDC","url":"https://api.anchor-x402.com/v1/decode/calldata","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":{"required":["chain","calldata_hex"],"properties":{"chain":{"enum":["ethereum","solana"],"type":"string","description":"EVM-only; \"solana\" returns 400."},"calldata_hex":{"type":"string","description":"Raw EVM calldata (>=4 byte selector), with or without 0x prefix."},"contract_address":{"type":"string","description":"Optional. Reserved for future on-chain ABI lookups."}}},"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":{"type":"json","example":{"params":[{"name":null,"type":"address","value":"0xab5801a7d398351b8be11c439e05c5b3259aec9b"},{"name":null,"type":"uint256","value":"1000000000000000000"}],"source":"openchain.xyz","decoded":true,"candidates":[],"function_name":"transfer","function_selector":"0xa9059cbb","function_signature":"transfer(address,uint256)"}},"example":{"request":{"input":{"body":{"chain":"ethereum","calldata_hex":"0xa9059cbb000000000000000000000000ab5801a7d398351b8be11c439e05c5b3259aec9b0000000000000000000000000000000000000000000000000de0b6b3a7640000"},"type":"http","method":"POST","bodyType":"json"}},"response":{"params":[{"name":null,"type":"address","value":"0xab5801a7d398351b8be11c439e05c5b3259aec9b"},{"name":null,"type":"uint256","value":"1000000000000000000"}],"source":"openchain.xyz","decoded":true,"candidates":[],"function_name":"transfer","function_selector":"0xa9059cbb","function_signature":"transfer(address,uint256)"}},"exampleRequest":{"chain":"ethereum","calldata_hex":"0xa9059cbb000000000000000000000000ab5801a7d398351b8be11c439e05c5b3259aec9b0000000000000000000000000000000000000000000000000de0b6b3a7640000"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1gYk7LgsMcTrJ53DPZHlN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","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 hex into a human-readable function name and typed parameter list via openchain.xyz","exampleAgentPrompt":"Can you decode this raw EVM calldata for me and tell me which function it's calling and what the typed arguments are: 0xa9059cbb000000000000000000000000ab5801a7d398351b8be11c439e05c5b3259aec9b0000000000000000000000000000000000000000000000000de0b6b3a7640000?","exampleUseCases":null,"resultDescription":"Returns the decoded function name/signature and a list of typed, named parameters extracted from the calldata hex, making raw transaction input data human-readable.","failureModes":["Unknown or unregistered 4-byte selector — openchain.xyz has no matching signature, returns null or error","Malformed hex input — calldata is not valid hex or is truncated","ABI mismatch — selector is known but arguments cannot be decoded against any known ABI","Payment failure — x402 USDC payment not accepted or insufficient funds"],"whenToPreferThis":"Use this endpoint when you have a raw hex calldata string from an EVM transaction and need to understand which smart contract function it invokes and with what parameters, without needing to supply your own ABI. Especially useful for transaction auditing, wallet activity explanation, or debugging on-chain interactions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:36:00.051Z","isFirstParty":false}