Module 1 · Lesson 1 of 45

What is a DEX?

⏱ 5 min read ● Beginner Module 1 · Foundations: what a DEX is & why

A decentralized exchange (DEX) is a marketplace where you trade one cryptocurrency for another directly from your own wallet. There is no company sitting in the middle holding your money — the trade is carried out automatically by a smart contract, a small program running on a public blockchain.

That single difference — you keep your funds the entire time — shapes almost everything else about how a DEX looks and feels.

What "decentralized" actually means

On a DEX, no single operator matches your order or stores your coins. Instead, open-source smart contracts hold pooled liquidity and execute swaps, and anyone can use or inspect them. Three properties follow:

  • Non-custodial — your coins never leave your wallet until the instant a trade settles. The platform cannot freeze, lend out or lose them.
  • Permissionless — there is no sign-up, email or approval. You connect a wallet and you can trade.
  • On-chain and transparent — every swap is written to a public ledger that you can verify yourself on a block explorer.

A simple mental model

When you swap on a DEX, the rough sequence is: connect your wallet, choose two tokens and an amount, the contract quotes a price from a liquidity pool, you sign the transaction, and it settles on the blockchain in seconds. We walk through this in detail in How a DEX works behind the scenes.

Where you have seen them

The best-known DEXes are household names within crypto:

  • Uniswap — the original automated market maker and the largest spot DEX, deployed across Ethereum and many other chains.
  • Jupiter — Solana's most-used swap router.
  • PancakeSwap — the flagship DEX on BNB Chain.

You can see how dozens of them stack up by volume, fees and liquidity on the DEX ranking.

The trade-off for all this control is responsibility: there is no support desk and no "forgot password". The rest of this journey is about getting comfortable with that — safely.

Key terms
Smart contractCode on a blockchain that runs exactly as written, holding liquidity and executing your trade with no human in the loop.
Non-custodialYou alone hold the keys to your funds; the exchange never takes possession of them.
Liquidity poolA shared pot of two tokens that you trade against instead of matching with another person.
dAppA 'decentralized application' — the website front-end you use to reach an on-chain protocol.
!Common mistakes
  • Assuming the DEX holds your coins like a bank. It never does — your wallet does, right up to the moment a trade settles.
  • Thinking a DEX is anonymous. It is pseudonymous: every trade is public and tied to your wallet address forever.
  • Confusing the website with the protocol. The contracts live on-chain; the site is just one door to them.
Finished reading? Track your progress through the journey.