Swap
Last updated
Was this helpful?
Last updated
Was this helpful?
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 event, as it does not require a session
param.
Using a mobile device, tap the following links to try out these swap
deeplinks:
buy
: The address of the token that should be bought, URL-encoded. Defaults to SOL if omitted.
sell
: The address of the token that should be sold, URL-encoded. Defaults to SOL if omitted.