We caught up with Alex Kim, software engineer at 0x, to see how they are using Covalent's API to help with the development of their Matcha product. Here is what he had to say about Covalent's API.
Q: Can you explain the product?
Matcha is a simple decentralized crypto exchange designed for everyone! After nearly 3 years of building the 0x protocol and enabling others to build great DeFi products, our team had a ton of new ideas for how we could make it easier for more people to access exciting new markets.
Q: What use case(s) does the Covalent API help you solve?
Covalent provides the transactional data, including historical and granular, as well as a user’s token balances, and transaction history for the 0x Matcha UI. Also, rather than building support for multiple blockchains in-house, we use the Covalent API to enable Matcha supporting Avalanche, Matic, BSC, Fantom, and any other blockchain which Covalent supports. This not only save us engineering resources but facilitates Matcha adopting a multi-chain strategy.
Q: What end points are you using?
Mostly Class A end points as well as multi-chain functionality, but more specifically:
With regard to querying multiple blockchains, it is just a matter of updating the chainID parameter.
Here is what the production grade product looks like:
Q: In your own words how do you feel Covalent is helping power your project?
Covalent provides critical data infrastructure for 0x allowing us to ship faster due to less time spent on blockchain data engineering, ultimately allowing us to better serve our millions of users.
Resources
All of the endpoints mentioned above and used by 0x can be found below.
About Matcha & 0x
0x is a protocol for decentralized exchange on Ethereum allowing users to exchange tokens without a central broker — ending the many inefficiencies of centralization by enabling transparent token exchanges between contracts.
Matcha is a leading crypto trading platform powered by the 0x API. Matcha is a decentralized exchange (DEX) aggregator, meaning that users can trade across all the major decentralized Ethereum and Binance exchanges in one simple and easy to use user interface . On Matcha, users swap their tokens directly peer-to-peer without ever having to give custody of their tokens to a middleman. Matcha pools liquidity across all the best exchanges including Uniswap, Sushiswap, Pancakeswap, and more, and can even split orders across multiple exchanges to ensure that users know they are getting the best prices on the market.
About Alex Kim
I’m a software engineer at 0x, building out the UI for Matcha (Our flagship aggregator product).