Decode & Audit Raw EVM Transaction Calldata
decode_and_audit_evm_calldataDecode raw EVM calldata to detect unlimited token approvals, setApprovalForAll(true), zero-minOut MEV exposure, expired deadlines, and DELEGATECALL takeovers before signing.
Instructions
Deterministically decodes raw hex EVM transaction payloads (to, value, data, chainId) across ERC-20 (transfer, approve, transferFrom, increaseAllowance), ERC-721/1155 (setApprovalForAll, safeTransferFrom), Permit2, Uniswap V2/V3/UniversalRouter, 1inch, Multicall (recursive inner-call decoding), and Gnosis Safe execTransaction. Flags CRITICAL unlimited approvals (>= 2^255 / MAX_UINT160), setApprovalForAll(true), zero-minOut MEV sandwich exposure, non-zero ETH sent with approvals, expired deadlines, and DELEGATECALL takeovers.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"data": "<data>"
},
"name": "decode_and_audit_evm_calldata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target 0x contract or recipient address (empty for contract deployment). | |
| data | Yes | 0x-prefixed hex calldata string (default: "0x"). | 0x |
| value | No | Native ETH/gas token value in wei (decimal integer string or 0x hex, default: "0"). | 0 |
| sender | No | Optional sender 0x address to detect swap proceeds diverted to a third-party address. | |
| chainId | No | EVM Chain ID (e.g. 1 = Ethereum, 8453 = Base, 42161 = Arbitrum, 137 = Polygon). | |
| referenceTimestamp | No | Optional Unix timestamp in seconds for deterministic deadline checks. |