Polygon (MATIC) APIs | Transfers, Trades, Tokens & DEX
Last month, we announced the grant from the Polygon team. Soon after, our team started the Polygon integration in our products.
Today we are happy to announce that we have integrated Polygon on all Bitquery products. Additionally, we have parsed 100s of DEXs on Polygon such as QuickSwap, ApeSwap, WaultSwap, etc. Therefore now you can query them using our GraphQl APIs.
- Checkout Polygon Explorer
- Query Polygon network using GraphQL IDE
- Polygon’s Money Tracing APIs (Example)
In this article, we will talk about how to query the Polygon network using Bitquery APIs and access trading data for DEXs on Polygon.
Polygon is a protocol and framework for building and connecting Ethereum-compatible blockchain networks. It is a 2nd layer solution that is designed to solve blockchain scalability issues. MATIC is the Polygon’s native token that powers the Polygon network.
Users can deposit Ethereum tokens to a Polygon smart contract, interact with them within Polygon, and later withdraw them back to the Ethereum main chain. The MATIC token is used to pay transaction fees and participate in proof-of-stake consensus.
This article is also published on our community forum, therefore if you have any questions regarding this. You can comment on that article.
Monthly Transaction Volume
In the following query, we’ll be querying the monthly transaction volume of the Polygon network.
As you can see in the following visualization, Polygon did more than 200 million transactions in June, at its peak, which is 577% of what Ethereum did in June 2021. In the same month, the Binance Smart chain processed more than 130 million transactions.
If you want the latest Polygon transactions, use this API.
Monthly Transaction Volume on Polygon
Monthly Transfer Count on Polygon
A transfer is when a token gets transferred. One transaction can contain none or multiple transfers. Using the following query, you can check monthly transfers on the Polygon network.
Polygon saw more than 140 million transfers in July 2021. In the same month, Ethereum saw 61 million transfers, and BSC saw 328 million transfers.
Monthly Transfers on Polygon
You can use the following GraphQL API to get the latest Polygon transfers.
Top Tokens on Polygon based on number of transfers
Let’s also see the top currencies on the Polygon network based on the number of transfers. You can get this data using this GraphQL API.
Top Tokens Traded on Polygon
Smart Contracts on Polygon
Polygon saw a whopping 1.75 billion smart contract calls in July 2021, almost equal to Binance smart chain’s 1.76 billion smart contract call.
On the other hand, Ethereum processed around 132 million smart contract calls in July.
You can use the following query to get smart contract calls a month on month basis.
DEXs on Polygon
Defi is growing on the Polygon network, 100s of DEXs and other DApps are deployed on Polygon. In addition, Aave, Sushiswap, and other famous Dapps are now also integrated with Polygon.
Since its launch, Polygon saw more than 53 million trades, totaling around $24 billion in trade volume, and all these trades came in the last four months.
DEXs like QuickSwap and SushiSwap on Polygon saw more than 6 billion in trade amount in just a few months.
Use this API to get the top Polygon DEXs based on trade volume.
Top Polygon DEXs based on trade volume
Top Tokens Trades on Polygon
As we have seen with other blockchains, stablecoin is also ruling the Polygon network. The top 5 tokens are involved in more than 95% of trades, and USDC is more popular than USDT.
Top Tokens Trades on Polygon
All Latest Trades on Polygon
You can use our DEX APIs to get all the latest trades on Polygon for any DEX we support.
For example, check the following API to get the latest Polygon trade.
You can also get trades for specific DEX, check the following example for getting latest trades from QuickSwap.
Showing Polygon’s DEXs data on TradingView
We provide flexible OHLC data APIs for all the DEXs and all the blockchains we support. Therefore you can easily integrate DEX trading data with the TradingView library to build charts for traders. We have also written tutorials on integrating Bitquery APIs with the TradingView library using React and VueJS.
For example, checkout following query in which we get CHI-WMATIC pair’s OHLC data for a minute timeframe.
Latest Trades for a given token on Polygon
Let’s say you want the latest trades for a given token on the Polygon network; you can use the following query, where we are getting the latest trades for the DINO token.
Just replace the baseCurrency with your token’s address.
Conclusion
In the upcoming days, we will write more tutorials on Polygon and how to get different types of data from the Polygon networks using Bitquery APIs.
This article is also published on our community forum, therefore if you have any questions regarding this. You can comment on that article.
Subscribe to our newsletter
Subscribe and never miss any updates related to our APIs, new developments & latest news etc. Our newsletter is sent once a week on Monday.