Skip to main content
Configure swap settings from the Privy Dashboard. Navigate to Wallet Infrastructure > Wallets > Advanced to enable swaps and customize routing behavior.

1. Enable swaps

Toggle Enable token swaps to activate swap functionality for your app. Swaps are disabled by default.

2. Configure gas sponsorship

Gas sponsorship must be enabled for your app before swaps can execute. Configure gas sponsorship from the Wallet infrastructure > Gas sponsorship page in the Privy Dashboard and ensure your gas credits are funded.
Swap requests fail if gas sponsorship is not enabled for your app. See the gas sponsorship setup guide for instructions.

3. Select protocols

Choose which Uniswap protocols are used to route swaps. Additional protocols and DEX aggregators are planned for future releases.
OptionDescription
All UniswapRoutes through Uniswap V2, V3, and V4 pools. This is the default setting and provides access to the broadest liquidity.
Uniswap pools onlyRoutes exclusively through Uniswap V2, V3, and V4 on-chain pools.
UniswapX onlyRoutes through the UniswapX protocol. Coming soon.

4. Select routing strategy

Choose how swaps are optimized when multiple routes are available.
OptionDescription
FastestOptimizes for execution speed. Selects the route expected to confirm on-chain most quickly. This is the default setting.
Best priceOptimizes for output amount. Selects the route that returns the most tokens to the wallet, which may take longer to execute.
Fastest is typically appropriate for most use cases. Best price may result in longer confirmation times during periods of network congestion, but can yield better rates for larger swaps.