How to view your Digital Asset Holdings

Quick Start

Each blockchain is vast, and can be difficult to get an accurate picture of what assets you own. You might have multiple accounts across different blockchains. Maybe you even have an account just for your NFT collection. As a user, you'll want to be able to track all of these assets and get a full view of what you own. How can we get a multichain portfolio? You could run 8 different blockchain nodes and create an infrastructure to support ETL from each one of these nodes. Although this can be very time consuming and financially costly. Another way would be to combine endpoints from multiple API providers. That is if you don't mind trying to build a data model to handle the different shapes of data returned from these endpoints, not to mention handling API Keys and different rate limits. Why not get all of your data from a single API? We’ve made our APIs powerful, enabling digital assets & portfolios across blockchains.

Let's walk through what we'll need to accomplish this:

  • Latest and historical balances
  • Pricing data
  • Real-time activity feeds
Latest and historical balances

The most basic function of our portfolio is to provide a current and historical view of balances in a users account. This should encompassing all types of tokens, and addresses from different blockchains.

Try out the example on runkit!

Pricing data

We'll also want to track these balances overtime and watch our gains/losses based on market values. In order to do this, we'll need the price data associated with each asset that the user is holding. You'll notice in the previous example the includePrice: true option which gives us all the necessary pricing data.

Real-time activity feeds

Finally, our users want to be informed when a value transfer occurs and have their balance updated to match the current state of their holdings. It might also be that they want to set alerts when transactions occur. Again, this must incorporate more than a single blockchain. All of this is possible with our single API.

Try out the example on runkit!