Smart-account: approve token
fuse_smart_approve_tokenSubmits an ERC-4337 UserOperation calling ERC20.approve(spender, amount) from the configured smart wallet.
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": {
"tokenAddress": "<tokenAddress>",
"spender": "<spender>",
"amount": "<amount>"
},
"name": "fuse_smart_approve_token"
}
}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. |