> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phantom.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Swap

> Deep link to Phantom's in-app token swapper with prefilled buy and sell tokens across supported chains.

<Tip>
  Watch [Swap demo](https://youtu.be/qJNv7lpYmtw) on YouTube.
</Tip>

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, such as USDT on Ethereum to USDC on Solana.

The `swap` deeplink can be used at anytime. It does not need to be preceded by a [Connect](/phantom-deeplinks/provider-methods/connect) event, as it does not require a `session` param.

<Info>
  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.
</Info>

## URL structure

```
https://phantom.app/ul/v1/swap?buy=<buy>&sell=<sell>
```

## Parameters

* `buy`: The [CAIP-19](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-19.md) address of the token that should be bought, URL-encoded. Defaults to SOL if omitted.
* `sell`: The [CAIP-19](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-19.md) 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 the `swap` deeplink:

### Swap SOL to WIF

```
https://phantom.app/ul/v1/swap/?buy=solana%3A101%2Faddress%3AEKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm&sell=
```

### Bridge USDC on Solana to USDT on Ethereum

```
https://phantom.app/ul/v1/swap/?buy=eip155%3A1%2Faddress%3A0xdAC17F958D2ee523a2206206994597C13D831ec7&sell=solana%3A101%2Faddress%3AEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
```
