Swap
Last updated
Last updated
Phantom supports deeplinking directly to the in-app swapper. Developers can specify which tokens should be prefilled in the buy
and sell
fields. In addition to swapping tokens on a single chain, the swapper can also be used to bridge stablecoins across chains (i.e. USDT on Ethereum -> 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.
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.
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.
Using a mobile device, tap the following links to try out these swap
deeplinks:
Bridge USDC (SOL) to USDT (ETH)