encode_erc20_approve_safe
Generate safe ERC-20 approve calldata by resetting allowance to zero first, satisfying tokens like USDT that require a zero allowance before approval.
Instructions
Generates safe ERC-20 approve calldata with allowance reset logic (handles USDT/0-allowance requirement). (0.01 USDC on Base L2)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Input parameters or JSON string payload for the tool execution | |
| paymentSignature | No | Base L2 USDC micropayment signature or transaction hash for x402 settlement |