Link.offramp
Last updated
Last updated
OFF-RAMP REQUIRES AUTHENTICATED USER
Link.offramp({})
should only be called when user is authenticated and logged in, otherwise it will require user to reconnect
The off-ramp functionality is available in SDK v1.35.3+ and is a collaboration between XpansionChain and providers, such as MoonPay and Layerswap.
LIMITED CURRENCY SUPPORT WITH MOONPAY
We only support ETH, USDC, GODS or IMX token
To initialize the off-ramp process with an option to choose any available currency and amount, marketplace needs to call the off-ramp function:
This displays the Link UI with a screen when a user need to choose currency and anter amount:
To initialize the off-ramp process for a specific currency:
This displays the Link UI with a screen when a user can only enter amount with already populated currency:
To initialize the off-ramp process with defined currency and amount:
This displays the Link UI with loaded MoonPay widget:
To initialize the off-ramp process with specified provider(by default MoonPay):
This displays the Link UI with loaded Layerswap widget: