Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Latest commit

 

History

History
58 lines (44 loc) · 3.55 KB

File metadata and controls

58 lines (44 loc) · 3.55 KB

Note 📣 After May 8, 2023, all API requests without an API key will return an error. Legacy code examples may contain requests without API keys. Follow this guide for how to get a live API key and use it for any 0x products.

How to Build a Simple Token Swap DApp using the 0x Swap API

Learn how to build a token swapping dapp, similar to a simple Matcha.xyz, using the 0x /swap API endpoint.

This app aggregates liquidity across the greater DEX ecosystem using 0x to surfaces the best price to the user and allow them to easily settle their trades!

Follow Along to Learn

  • 💦 What is liquidity aggregation?
  • 🪟 Query + Display an ERC20 token list
  • ♻️ Use @0xProject API's /swap endpoint
  • 🧱 Build a Swap Dapp with Metamask and Web3.js

Video and Written Tutorial


Teacher

  • Jessica Lin
  • Developer Advocate, 0x Labs.

Reading code, interacting with CoinGecko API and writing down important information.


NFT

Built a Token Swap Dapp with 0x API https://testnets.opensea.io/assets/goerli/0xf4910c763ed4e47a585e2d34baa9a4b611ae448c/5650374730150659443715928048758275365410007916752074954041965403840314343425