approve_token
Authorize smart contracts to transfer your ERC-20 tokens for DeFi interactions like trading or lending. Specify exact amounts or grant unlimited approval.
Instructions
Approve a spender contract to transfer ERC-20 tokens on your behalf. Required before interacting with any DeFi protocol (DEXs, lending, etc.). Use amount "max" for unlimited approval, or specify an exact amount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | Yes | Wallet ID | |
| token | Yes | ERC-20 token contract address | |
| spender | Yes | Contract address to approve as spender | |
| amount | Yes | Amount to approve in human-readable format (e.g. "1000"), or "max" for unlimited | |
| chain_id | Yes | Chain ID | |
| decimals | No | Token decimals (6 for USDC, 18 for most tokens) |