Developers Forum for XinFin XDC Network

Vinn
Vinn

Posted on

How to Swap Native XDC on Uniswap V3 via OKU.trade

Introduction

In a major step forward for the XDC Network, Uniswap V3 now supports native XDC, enabling seamless token swaps directly on the OKU.trade platform. This integration provides users with a decentralized, efficient, and secure way to trade tokens on the XDC blockchain without needing to wrap XDC or use bridged assets.
In this guide, we’ll walk you through how to swap native XDC for another token using OKU, a powerful frontend for Uniswap V3 on the XDC Network.

What You’ll Need

Before you start, make sure you have the following ready:

  • A wallet (e.g., MetaMask or XDCPay) connected to the XDC Network
  • Some native XDC in your wallet for the swap and gas fees
  • Access to OKU.trade

Step-by-Step Guide to Swapping XDC on Uniswap V3 via OKU

Step 1: Connect Your Wallet
Visit OKU.trade.
Image description

Click on the "Connect Wallet" button at the top right. Choose your wallet provider (e.g., MetaMask or XDCPay).
Image description

Ensure your wallet is connected to the XDC Network (Chain ID: 50).
Image description

If your wallet is not already set up for XDC, you'll need to add the network manually. Here's the info to add the XDC Network manually on Metamask:

Step 2: Select Your Tokens
First select the Blockchain and then select the input token is native XDC.
Image description

Choose the token you want to swap to by clicking the output token dropdown. In the provided example, the output token is SRX.
Image description

Step 3: Enter Swap Amount

  • In the "From" field, enter the amount of XDC you want to swap.
  • The "To" field will automatically calculate the amount of the output token you’ll receive, based on current market rates and available liquidity. Image description

Note: If you are using OKU Trade platform first time then you need to Sign In.
Image description

Step 4: Review Swap Details
Before swapping, check:

  • Exchange rate
  • Slippage tolerance
  • Estimated gas fee (paid in XDC)
  • Minimum received amount (after slippage) You can adjust slippage settings by clicking the gear ⚙️ icon.

Step 5: Approve & Swap

  • If this is your first time swapping XDC to this token, you may be prompted to approve the token in your wallet.
  • Click "Swap".

Image description

  • Confirm the transaction in your wallet when prompted. Image description

Step 6: Wait for Confirmation
Once confirmed, the swap will be processed on the XDC blockchain. You can view the transaction on XDCScan.io by clicking the transaction link after the swap.
Image description

That’s It!

You’ve successfully swapped native XDC using Uniswap V3 on OKU.trade. This process unlocks new DeFi opportunities within the XDC ecosystem — from liquidity provision to on-chain trading — all while staying fully decentralized.

Discussion (1)