{"uid":"cap_SLuV2hkrdSi4PO0AeA4mj","slug":"sitecheck-evm-calldata-decoder-17fc3d79","name":"SiteCheck EVM Calldata Decoder","description":"Function signatures for a 4-byte selector, and for calldata the decoded arguments. Signatures come from the openchain.xyz database, with 4byte.directory as fallback. Calldata is decoded against each candidate until one fits the selector and the arguments; bigints are returned as strings. Read-only.","url":"https://api.sitecheck-api.workers.dev/api/evm/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","required":[],"properties":{"data":{"type":"string","description":"Calldata, 0x followed by hex (at least 4 bytes)"},"selector":{"type":"string","description":"Or only the selector: 0x followed by 8 hex characters"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"source":"openchain.xyz signature database, 4byte.directory (fallback)","decoded":{"args":["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","10"],"name":"transfer","signature":"transfer(address,uint256)"},"selector":"0xa9059cbb","checkedAt":"2026-10-14T07:00:20.286Z","signatures":["transfer(address,uint256)"]}},"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_nBqHNygVBxUKXPeoCTTkJ","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 function selector into a human-readable function name, signature, and argument values by querying the openchain.xyz and 4byte.directory signature databases.","exampleAgentPrompt":"Can you decode this EVM calldata for me: 0xa9059cbb000000000000000000000000d8dA6BF26964aF9D7eEd9e03E53415D37aA960450000000000000000000000000000000000000000000000000000000000000064 — tell me which function it's calling and what arguments it's passing?","exampleUseCases":[{"title":"Identify unknown transaction input data","prompt":"I'm looking at an on-chain transaction and the input data is 0xa9059cbb000000000000000000000000d8dA6BF26964aF9D7eEd9e03E53415D37aA96045000000000000000000000000000000000000000000000000000000003B9ACA00 — can you decode it and tell me what function is being called and with what arguments?"},{"title":"Resolve a 4-byte function selector","prompt":"What Solidity function corresponds to the selector 0x23b872dd? Look it up in the signature database and give me the full function signature."},{"title":"Audit smart contract interaction in a DeFi transaction","prompt":"I see a DeFi transaction with calldata starting with 0x38ed1739 — decode it for me so I can understand which swap function is being invoked and what the parameters are."}],"resultDescription":"Returns a JSON object containing the resolved function name (e.g. 'transfer'), the canonical Solidity signature (e.g. 'transfer(address,uint256)'), the decoded argument values, the 4-byte selector, all matched signatures from the database, and the source databases checked (openchain.xyz with 4byte.directory as fallback), plus a timestamp.","failureModes":["Unknown selector: returns empty or no matches if the selector is not in openchain.xyz or 4byte.directory","Invalid hex input: error if calldata is not valid hex or shorter than 4 bytes","Ambiguous selector: multiple signatures may be returned if the selector collides across different functions","Missing required parameter: error if neither 'data' nor 'selector' query param is provided"],"whenToPreferThis":"Use this endpoint when you need to decode raw EVM transaction calldata or identify a 4-byte function selector without running a local ABI parser. It's ideal for agents analyzing on-chain transactions, auditing contract interactions, or explaining what a transaction does in human-readable terms — especially when you don't have the ABI available. It aggregates two major community signature databases (openchain.xyz and 4byte.directory), giving broad coverage across thousands of known Solidity function signatures.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:44:36.963Z","isFirstParty":false,"canonicalSlug":"sitecheck-evm-calldata-decoder-17fc3d79"}