{"uid":"cap_DEiGB9KTolMh8cba-_EHf","slug":"evm-calldata-decoder-15e5025d","name":"EVM Calldata Decoder","description":"APEX. Decode raw EVM calldata. Pass ?data= (0x hex, at most 4,000 characters in all). Returns the 4-byte selector, candidate function signatures and the decoded arguments as strings (addresses checksummed, numbers in decimal, long bytes cut). ERC-20 transfer, approve and transferFrom are known locally; other selectors are looked up in the public openchain.xyz community signature database, so a match is a candidate, not proof.","url":"https://apexfaucet.xyz/api/x402/calldata-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","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["data"],"properties":{"data":{"type":"string","pattern":"^0x([0-9a-fA-F]{2}){4,}$","maxLength":4000,"description":"EVM calldata: 0x then an even number of hex digits, at least 8 (the selector), at most 4,000 characters in all."}}}}},"output":{"type":"object"}}},"responseSchema":{"type":"json","schema":{"type":"object","properties":{"ok":{"type":"boolean"},"data":{"type":"object"},"paid":{"type":"number"}}},"example":{"ok":true,"data":{"ok":true,"found":true,"source":"openchain.xyz public signature database (community data)","selector":"0x38ed1739","dataBytes":260,"candidates":[{"decoded":true,"arguments":[{},{}],"signature":"swapExactTokensForTokens(uint256,uint256,address[],address,uint256)","matchesExactly":true}],"decodedCount":1,"argumentBytes":256,"candidatesShown":1,"candidatesChecked":1,"discardedCandidates":0,"candidatesInDatabase":1},"paid":0.002}},"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_a1oxTrbttCvejUzp37DRF","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 hex into the 4-byte selector, candidate function signatures, and decoded arguments","exampleAgentPrompt":"Can you decode this raw EVM calldata for me and tell me what function it's calling and what arguments are being passed: 0xa9059cbb000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045000000000000000000000000000000000000000000000000016345785d8a0000","exampleUseCases":[{"title":"Inspect suspicious transaction input","prompt":"I found a pending transaction on Ethereum with this input data and I want to know what it's actually doing before I sign it — can you decode 0x23b872dd000000000000000000000000abc123def456abc123def456abc123def456abc1230000000000000000000000001234567890abcdef1234567890abcdef123456780000000000000000000000000000000000000000000000000de0b6b3a7640000 and explain the function and arguments?"},{"title":"Debug a failed smart contract call","prompt":"My smart contract call failed and I need to understand what calldata was sent. Can you decode this transaction input and show me the function signature and all decoded parameters: 0x095ea7b3000000000000000000000000bebc44782c7db0a1a60cb6fe97d0b483032ff1c7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"},{"title":"Audit a DeFi protocol interaction","prompt":"I'm auditing a DeFi transaction and need to know exactly what function was called and with what values. Please decode this calldata: 0x38ed1739000000000000000000000000000000000000000000000002b5e3af16b1880000000000000000000000000000000000000000000000000000000000000000000a"}],"resultDescription":"Returns a JSON object with an `ok` boolean, a `paid` amount, and a `data` object containing the 4-byte function selector, one or more candidate function signatures matching that selector, and the ABI-decoded argument values extracted from the calldata.","failureModes":["Invalid hex string (not starting with 0x or odd-length) returns a validation error","Calldata shorter than 8 hex characters (less than 4 bytes) is rejected","Input exceeding 4,000 characters is rejected","Unknown 4-byte selector with no matching signature in the database returns empty candidates","Malformed ABI encoding may cause decoding to fail or return partial results","Payment failure via x402 protocol prevents the call from being processed"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-use EVM calldata decoder without setting up a local ABI library or indexer. Ideal for agents that encounter raw transaction input data and need to identify the function and arguments on-the-fly across Ethereum, Base, Arc, or BNB chains. Prefer this over manual ABI decoding when you don't have the ABI and need 4-byte selector lookup with candidate signature matching.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:51:42.477Z","isFirstParty":false,"canonicalSlug":"evm-calldata-decoder-15e5025d"}