Esc

Swaps

MOSS comes pre-packaged with multiple swap providers in a marketplace model where every provider is asked for a quote and the responses are returned to the wallet.

The swap with the most beneficial outcome is automatically selected and a user can choose to use a different provider via the UI.

The current provider list is:

  • Relay
  • LI.FI
  • MoonPay Trade

The swap UI can be triggered from your app using the swap method, optionally passing in a from and to token address.