9. Build a Token Swap Dapp With 0x API | Road To Web3

preview_player
Показать описание

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:

Written tutorial version:

GitHub repo:

Share your challenge project to get a Proof of Knowledge (PoK) NFT:

Find answers on the Ethereum StackExchange:

#DecentralizedExchange #Uniswap #RoadToWeb3 #AlchemyUniversity
Рекомендации по теме
Комментарии
Автор

Hope you're enjoying your road to web3! Please share any feedback you have on the video in this form, it helps us get better for future videos :)

AlchemyPlatform
Автор

This is one of the few Dapp tutorials online that actually worked!
Thanks.

detroitereva
Автор

You pulled up some old school tricks right there. Its been a long time, thanks for the data. Great stuff!

dallas-cole
Автор

thank you for sharing useful knowledge, I like watching it.. thank you very much

adrianfalsha
Автор

I have a huge problem, I can authorize the token in the metamask on the polygon network, but I am having an evm error, can someone help me?

RafaelOliveira-nzvr
Автор

what is that sign simular to ' at 27:47 at row 19?

nickodim
Автор

Hi, for me send transaction is not working i got result upto quote but further transaction is not happening no errors are shown

mohameddhanish
Автор

does it work for other network like bsc, polygon etc i only see ETH to DAI in the video

lunner
Автор

having issue doing the modal if i clicked its not opening

christophercumpio
Автор

Ma'am, is it possible to create a 0x protocol proxy flash contract which allows only selling or only buying of a certain token at a predefined price?

VivekKumar-dbyy
Автор

not working, metamask doesn't connect, doesn't show list of coin

siamalhuq
Автор

I would like to create a service like this, but do I earn from fee ? Otherwise, the maintenance costs for a free product would not be able to maintain these costs

CryptoWork
Автор

how can i add filter in the tokens? hope you will reply to me thanks

christophercumpio
Автор

Thank you..Does it work with a trusted wallet as well or does it work with Metamask only?

hazemtouil
Автор

thats all ERC-20, how to do that with BEP-20?

tremz
Автор

hey can anyone please solve this whenever i am clicking swap button i am getting this error in console i am not able to swap Uncaught (in promise) Error: invalid address (argument="address", value=undefined, code=INVALID_ARGUMENT, version=address/5.7.0) (argument="spender", value=undefined, code=INVALID_ARGUMENT, version=abi/5.7.0)

dinpran
Автор

I am trying the same code but getting this error on Approve method - Returned error: The method eth_sendTransaction does not exist/is not available. Any help is appreciated

priyankajadhav
Автор

Thanks a lot, but a tuto from scratch with React would be so much interesting

elonapereira
Автор

Can you please attached some html, js, css link in bio mam😅

nicotinforexdanaspecialannauni
Автор

I am glad to have joined, though I started late. I have to start from pt1. There are some crypto currency I bought and some airdrops I got but I can't sell it because the liquidity wasn't added, it keeps saying " insufficient liquidity" I need to learn this to enable me to understand the ethics and methodology in which they operate. Pls I am going to write you on twitter. Thank you for this.

breenofyno