Smart-account: approve token
fuse_smart_approve_tokenSubmits an ERC-4337 UserOperation calling ERC20.approve(spender, amount) from the configured smart wallet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | ||
| amount | Yes | Allowance amount. Default unit is the token's display unit; pass `unit: "base"` for raw base units. Use `"max"` to approve the uint256 maximum. | |
| spender | Yes | Address being granted spending allowance. | |
| tokenAddress | Yes | ERC-20 token contract address. |