0xProject / swap-demo-tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:JavaScript 49.7%Language:HTML 41.9%Language:CSS 8.4%