Smart-account: swap tokens
fuse_smart_swap_tokensSubmits an ERC-4337 UserOperation executing a swap on Fuse via the Fusebox trade engine. Quote a swap first with fuse_get_trade_quote to preview the route.
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": {
"inputToken": "<inputToken>",
"outputToken": "<outputToken>",
"inputAmount": "<inputAmount>"
},
"name": "fuse_smart_swap_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exactIn | No | `true` (default) treats `inputAmount` as sell amount; `false` treats it as buy amount. | |
| inputToken | Yes | Address of the token being sold. | |
| inputAmount | Yes | Amount in base units (wei for 18-decimal tokens). | |
| outputToken | Yes | Address of the token being bought. |