dex. is a sample web3 application built on the solana blockchain that facilitates swapping a native SOL for USDC. Under the hood, dex. uses jup.ag API to fetch the current traded price of USDC and create a buy transaction with a slippage of 20 bps.
Get started!
Connect a wallet
Fetch the latest price
Swap the token
Connect a wallet - Fetch price and quote - Swap tokens - Connect a wallet - Fetch price and quote - Swap tokens