{"uid":"cap_hdU4h9hd8_mYKMj1n899F","slug":"nightshift-labs-evm-calldata-decoder-8f22a785","name":"Nightshift Labs EVM Calldata Decoder","description":"Decode EVM transaction calldata before signing: finds the function signature (signature DB, verified by re-encoding to reject selector collisions), decodes all arguments, expands multicall batches, and warns about unlimited token approvals, approve-all-NFTs, permits, ownership changes and upgrades. Works for any EVM chain.","url":"https://nightshift-x402.nightshift-labs.workers.dev/v1/evm/decode-calldata?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":["data"],"properties":{"data":{"type":"string","pattern":"^0x([0-9a-fA-F]{2})+$","description":"hex calldata (selector + ABI-encoded args), max 16 KB"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"args":["0x000000000022D473030F116dDEE9F6B43aC78BA3","115792089237316195423570985008687907853269984665640564039457584007913129639935"],"selector":"0x095ea7b3","warnings":["UNLIMITED_TOKEN_APPROVAL"],"signature":"approve(address,uint256)"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XO-VSNqJSZa6F4UOCkmJp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes raw EVM hex calldata into human-readable function signature, selector, and ABI-decoded arguments","exampleAgentPrompt":"Can you decode this EVM calldata for me and tell me what function is being called and what the arguments are: 0x095ea7b3000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","exampleUseCases":[{"title":"Identify suspicious transaction before signing","prompt":"Before I approve this transaction, can you decode this calldata and tell me what function it's calling and what arguments it's passing — I want to make sure it's not an unlimited approval: 0x095ea7b3000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"},{"title":"Debug smart contract interaction","prompt":"I'm debugging a failed contract interaction — can you decode this raw calldata and show me the function signature and each argument so I can figure out where the encoding went wrong: 0xa9059cbb000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045000000000000000000000000000000000000000000000000016345785d8a0000"},{"title":"Audit DeFi transaction for unlimited approval","prompt":"I just intercepted this calldata from a DeFi protocol — decode it and flag any warnings like unlimited token approvals: 0x095ea7b30000000000000000000000001111111254eeb25477b68fb85ed929f73a960582ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}],"resultDescription":"Returns a JSON object with the decoded function signature (e.g. 'approve(address,uint256)'), the 4-byte selector, an array of decoded argument values, and a warnings array that flags dangerous patterns such as UNLIMITED_TOKEN_APPROVAL.","failureModes":["Invalid or malformed hex string returns an error (data must start with 0x and contain valid hex pairs)","Unknown function selector (not in ABI database) may return partial results without a signature","Calldata exceeding 16 KB will be rejected","Missing required 'data' query parameter returns a validation error","Calldata shorter than 4 bytes (no selector) cannot be decoded"],"whenToPreferThis":"Use this endpoint when you need to decode raw EVM hex calldata into human-readable form, especially for transaction verification, security auditing, or debugging smart contract calls. It is particularly valuable for detecting dangerous patterns like unlimited token approvals. Prefer this over manual ABI decoding when you need a quick pay-per-call utility without managing your own decoding infrastructure.","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":"nightshift-labs-evm-calldata-decoder-8f22a785"}