How to use a Web3 wallet to make DEX swap transactions?

Publicado em 8 de fev. de 2025Atualizado em 4 de fev. de 2026Leitura de 4min29

1. What is the swap transaction feature?

Swap is a type of transaction that refers to the conversion of tokens on the same blockchain, meaning the payment and receiving tokens are on the same network. It is one of the most commonly used features in Web3 wallets. You can make transactions on both the App and Web platforms.

2. Preparation before transaction

  1. First, you need to create a Web3 wallet: How to create or import an OKX Wallet?

  2. Deposit assets into your Web3 wallet: How to receive assets in your wallet

  3. Find the futures address of the coin you want to buy: How to add and view digital assets in a Web3 wallet?

3. Make a transaction

For example, to buy TRUMP on the Solana network, you exchange SOL for TRUMP on Solana. Before making a purchase, you need to prepare for gas fees. For instance, the gas fee on the Solana network is SOL, and on the TRON network, it is TRX.

App

  1. Open your Web3 wallet, tap [DEX] - [Swap]. The token at the top is the one you want to pay with, and the token at the bottom is the one you will receive.

  2. After selecting the corresponding token, you can choose either [market price] or [price limit] to make the exchange. The page defaults to [market price]. Enter the quantity you want to exchange, click [Exchange], then go to your wallet to [Confirm] and wait for the transaction to be processed on-chain.

Note: You need to enable your smart account before you can place limit orders.

Web

  1. Open the OKX Wallet official website - [Swap]. You need to select a network. For example, if you hold SOL, you need to choose the Solana network.

  2. Select the token you want to swap, enter the amount you wish to exchange, and the system will display the current reference rate, slippage, minimum amount to receive, liquidity selection, service fee, and other parameters. Once everything is set, click 【Swap】 and wait for the transaction to be confirmed on-chain.

Plugin wallet

Log in to the extension wallet: OKX Wallet Extension Wallet User Guide

On the plugin wallet homepage, select [Swap], choose the network, such as Solana, then select the tokens to swap, enter the quantity to swap, and click [Swap via DEX]. Wait for the transaction to be confirmed on-chain.

4. Friendly Reminder

  1. Please make sure to back up your seed phrase for the new wallet.

  2. When exchanging with the native token of the mainnet, clicking 'All' when selecting the amount will automatically reserve a portion of the coin as gas fees to avoid transaction failure.

  3. When the network is congested, such as on the Ethereum network, gas fees may skyrocket. If the reserved gas fee is insufficient, the transaction may fail.

  4. For some tokens, slippage can change significantly when there is a sudden surge in trading volume or rapid price fluctuations. If your slippage setting is too low, you may not be able to successfully trade the token.

  5. After the transaction is completed, you can view your asset on the wallet Home. Click the history icon to check your my trades, and you can also jump to the browser to view the details of a specific transaction.

For more information about DEX trading, please refer to: DEX FAQ