Watch Swap demo on YouTube.
buy
and sell
fields. In addition to swapping tokens on a single chain, the swapper can also be used to bridge stablecoins across chains, such as USDT on Ethereum to USDC on Solana.
The swap
deeplink can be used at anytime. It does not need to be proceeded by a Connect event, as it does not require a session
param.
The
swap
deeplinks are not intended to be pasted into mobile web browsers. These deeplinks must either be handled by an app or tapped on by an end user.URL structure
Parameters
buy
: The CAIP-19 address of the token that should be bought, URL-encoded. Defaults to SOL if omitted.sell
: The CAIP-19 address of the token that should be sold, URL-encoded. Defaults to SOL if omitted.
Examples
Using a mobile device, tap the following links to try out theswap
deeplink: