9. Build a Token Swap Dapp With 0x API | Road To Web3
Alchemy Alchemy
22.1K subscribers
30,103 views
520

 Published On Jun 27, 2022

In this Ethereum blockchain development tutorial, learn how to build a token swapping dapp (a simple Matcha.xyz) using the 0x /swap API endpoint. This app aggregates liquidity across the greater DEX ecosystem surfaces the best price to the user.

0:00 - Intro
0:42 - What will you learn?
1:48 - DeFi & 0x Concepts
8:04 - Walk-through the Starter Code
10:51 - Connect to MetaMask
16:05 - Create a Modal for the Token List
20:26 - Fetch & Display Token List form CoinGecko API
31:25 - Display Selected Token Image & Symbol in Swap Box
36:06 - Get Price
49:27 - Get Quote
52:10 - Set a Token Allowance
1:06:58 - Perform the Swap

---

Signup for a free Alchemy account:
https://dashboard.alchemyapi.io/signu...

Written tutorial version:
https://docs.alchemy.com/alchemy/road...

GitHub repo:
https://github.com/0xProject/swap-dem...

Share your challenge project to get a Proof of Knowledge (PoK) NFT:
https://university.alchemy.com/discord

Alchemy University NFTs: https://mintkudos.xyz/community/alche...

Jessica Lin:   / hey_its_jlin  
Follow us on Twitter:   / alchemyuniversity  

Find answers on the Ethereum StackExchange:
https://ethereum.stackexchange.com/qu...

#DecentralizedExchange #Uniswap #RoadToWeb3 #AlchemyUniversity

show more

Share/Embed