Today we will explain the difference between our V1 and V2 APIs. Let’s start with naming; we call our V2 APIs as Streaming APIs. Additionally, there is also a difference in the endpoint.
Now, let’s talk about a few features which we added in new Streaming APIs (V2).
As the name suggests, V2 APIs are designed to provide real-time blockchain data without any delay.
It combines both real-time and historical data. Therefore, provides a seamless view of querying blockchains with real-time updates.
Streaming API support WebSockets through GraphQL Subscriptions, it’s an event-based data subscription where you can write a query, and whenever a query has new data, it will be pushed to you. Because of this, you can now access real-time blockchain updates.
GraphQL subscriptions are very useful for building notification services.
V1 APIs support 40+ blockchains. However, Streaming APIs currently have Ethereum, Binance Smart Chain, and Arbitrum.
We are adding Optimism and slowly migrating more chains from V1 API in which Real timeliness becomes critical for a better user experience.
Streaming APIs have BalanceUpdates APIs which allow you to aggregate data to get token balances or holders.
You can get them for any time in the past for NFTs and fungible tokens. Additionally, you can get the holders with over a specific balance.
Here is an example of token holder API.
One of the major improvements we brought in V2 APIs is NFT APIs.
Now you can query all sorts of NFT data, such as Ownership, Metadata, Transfers, trades, origin & history, using our APIs.
Many times our users look for trace data with raw transaction data for various reasons, including data verifiability.
We now support much richer call data with path and argument details, opcodes, and raw data in our V2 APIs.
See examples of our Trace APIs.
This is our game-changing feature in which you can query the Arguments of a smart contract like a Mysql table.
You can check data for specific argument values, aggregate argument values, etc.
Check our Blur marketplace API article to see the usage of this feature.
We are very excited to see enable more features in our Streaming APIs. Here are a few things which we will enable in the upcoming weeks.
- Mempool data — We already have Mempool data, and we are going to enable it soon in our V2 APIs.
- Cross-chain queries — We are going to add Cross chain queries functionality where you can query multiple blockchains using 1 query.
- More blockchains — We are adding Optimism and going to add more blockchains with high throughput.
- Data in the cloud — This is our new product, which uses streaming internally, using which we will allow complete historical and Real-time data through AWS, Snowflake, Google, and other Cloud vendors.