You're viewing a demo portfolio

Join the waitlist
PRSM

fuse_smart_swap_tokens

Active

Tool of Fuse Network

declared in 0.1.0

Submits 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.

Parameters schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "inputToken",
    "outputToken",
    "inputAmount"
  ],
  "properties": {
    "exactIn": {
      "type": "boolean",
      "description": "`true` (default) treats `inputAmount` as sell amount; `false` treats it as buy amount."
    },
    "inputToken": {
      "type": "string",
      "description": "Address of the token being sold."
    },
    "inputAmount": {
      "type": "string",
      "description": "Amount in base units (wei for 18-decimal tokens)."
    },
    "outputToken": {
      "type": "string",
      "description": "Address of the token being bought."
    }
  },
  "additionalProperties": false
}

What this tool wraps· 0 endpoints

min confidence0.700.50

No endpoints wrapped at confidence ≥ 0.70.

Parent server

Fuse Network

1/7 registries
View full server →