Introducing the Moralis Web3 API v2

We’ve now updated the Moralis Web3 API from version 1 (v1) to version 2 (v2). Right now, you can still choose to use the Moralis Web3 API v1, but you will need to update to Moralis Web3 API v2 before September 15th. Read on for the full breakdown of Moralis’ Web3 API v2!

Moralis Web3 API v2

We’ve recently been working on some changes to our Web3 API, and we’ve now released the Moralis Web3 API v2, making the Moralis Web3 API even better! 

If you log into your Moralis account and select the Moralis Web3 API on the lefthand side of your screen, you will now find that you’re running version 2 of the Moralis Web3 API. Moralis’ Web3 API v2 is now the default version, although you can still decide to run Moralis’ Web3 API v1 by clicking “API Version”. 

However, remember that you need to upgrade to version 2 of the Moralis Web3 API before September 15th. We’ll walk you through all the necessary steps to upgrade to Moralis Web3 API v2. Upgrading to version 2 of the Moralis Web3 API doesn’t take long, as it is essentially just updating some URL structures.

Why Are We Updating the Moralis Web3 API?

So, why did we decide to upgrade the Moralis Web3 API? This decision came after listening to feedback from you, the Moralis users. It is overwhelmingly clear how you love the way Moralis’ Web3 API puts powerful functionality right at your fingertips. However, we also saw an opportunity to improve the user experience even further.

As such, we are now incorporating some of your questions and feedback in the Moralis Web3 API v2. The main focus of Moralis’ Web3 API v2 isn’t to include a large number of new features. Instead, we want to make it crystal-clear for users how they use all the existing Moralis Web3 API features. Again, remember to upgrade to v2 before September 15th.

News in Moralis Web3 API v2

Essentially, the Moralis Web3 API v2 splits the different functionality into four distinct groups; Native, Account, Token, and Resolve

Native – The Native category contains basic endpoints that contain core, native blockchain functionality. 

Account – These Account endpoints relate to you specifying a user address, which Moralis can use to retrieve information about that user account. 

Token – Endpoints in the Token category allow you to specify a token address, and given that address, Moralis gives you whatever information about that token address you desire.

Resolve – The Resolve category allows you to, given a domain, resolve the address for that domain.

We are also introducing some brand new functionality to the Moralis Web3 API with version 2. Specifically, we want to mention our “to_block” functionality. If you use version 2 of the Moralis Web3 API, you can, e.g., go to balances and specify the balance of a particular user at a specific block (i.e., at a specific time).

You can, for example, look at – given a user address – what kind of ERC-20 tokens did that user have at a specific block in the past. This can be helpful in calculating everything from stop-loss to calculating tax. To start using Moralis Web3 API v2, just log into your Moralis account. You can check the specific URL changes for the Moralis Web3 API v2, in comparison with Web3 API v1.

When you upgrade to the new Moralis Web3 API v2, you can go to our forum at forum.moralis.io and ask any questions. As you’ll see, the Moralis Forum is highly active, and our team will be happy to answer any inquiries. If you want a rundown of the Moralis Web3 API v2 in video format, feel free to check out the following video from the official Moralis YouTube channel:

Share on facebook
Share on twitter
Share on linkedin
Moralis Blog
Moralis Blog

Related Articles

The latest in Blockchain
Development

Subscribe to the Moralis Magazine, and be the first to find out about the latest Web3 tech!