{"uid":"cap_kl-h5kT4PwW_cWXvrxIuK","slug":"defi-shield-hazel-vercel-app-b04b0c05","name":"ABI Calldata Decoder","description":"","url":"https://defi-shield-hazel.vercel.app/api/data/abi-decode","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"properties":{"abi":{"type":"array","description":"Optional ABI array for custom decoding"},"calldata":{"type":"string","description":"Hex-encoded calldata to decode"},"to_address":{"type":"string","description":"Optional contract address to auto-fetch ABI"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"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":{"request":{"calldata":"0xa9059cbb000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045000000000000000000000000000000000000000000000000016345785d8a0000","contractAddress":"0xdac17f958d2ee523a2206206994597c13d831ec7"},"response":{"success":true,"abi_source":"4byte_directory","to_address":null,"param_count":2,"raw_calldata":"0xa9059cbb000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045000000000000000000000000000000000000000000000000016345785d8a0000","function_name":"workMyDirefulOwner","decoded_params":{"param_0_uint256":"0xd8da6bf26964af9d7eed9e03e53415d37aa96045","param_1_uint256":"0x000000000000000000000000016345785d8a0000"},"response_time_ms":334,"function_selector":"0xa9059cbb","possible_functions":["workMyDirefulOwner(uint256,uint256)","join_tg_invmru_haha_fd06787(address,bool)","func_2093253501(bytes)","transfer(bytes4[9],bytes5[6],int48[11])","many_msg_babbage(bytes1)","transfer(address,uint256)"]}},"exampleRequest":{"calldata":"0xa9059cbb000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045000000000000000000000000000000000000000000000000016345785d8a0000","contractAddress":"0xdac17f958d2ee523a2206206994597c13d831ec7"},"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5Wc8nZBeNmMGoImwPE_Lc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes ABI-encoded Ethereum calldata into human-readable function name and parameters using the 4byte directory","exampleAgentPrompt":"Can you decode this Ethereum calldata for me — 0xa9059cbb000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045000000000000000000000000000000000000000000000000016345785d8a0000 — sent to contract 0xdac17f958d2ee523a2206206994597c13d831ec7? I want to know what function is being called and what the parameters are.","exampleUseCases":null,"resultDescription":"Returns a JSON object with: success flag, function_name (from 4byte directory lookup), function_selector (4-byte hex), decoded_params (key-value map of parameter names and values), param_count, possible_functions (list of candidate signatures matching the selector), abi_source, raw_calldata, and response_time_ms.","failureModes":["Unknown function selector — calldata selector not found in 4byte directory, returns partial result with possible_functions empty","Malformed calldata — invalid hex or truncated data causes decoding failure","Ambiguous selector — multiple candidate signatures matched, decoded_params may reflect wrong one","Contract address not needed for decoding — omitting it does not affect result but context may be lost","Rate limiting or payment failure — x402 payment not processed, returns 402 error"],"whenToPreferThis":"Use this endpoint when you need to interpret raw hex calldata from an Ethereum transaction and understand what function is being invoked and with what arguments. Ideal for transaction monitoring, auditing, debugging smart contract interactions, or building human-readable transaction summaries. Prefer this over manual ABI lookups when you don't have the ABI locally but have the calldata hex.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:53:56.657Z","isFirstParty":false}