Motivation

Our goal was to bring some new features to the table for already existing vSelf project. We decided to make a move towards multichain and to give users an ability to easily find their assets (e.g. SBTs) across whole blockchain ecosystem. In order to implement this we decided to go with one of the NEARCon partners APIs for their challenge.

What it does

We decided to build an additional page on our web-wallet side where people could lookup their assets on all chains supported currently by CovalentHQ API. We coded it during hackathon and deployed to production using our usual weapons of choice: Next.js + tRPC + Tailwind. Code can be found on our Github and is available for public scrutiny.

What we learned

It seems CovalentHQ API doesn't have yet proper indexer for NFTs (or it's behind paywall we not sure) so it was impossible to filter owner's account assets without fetching all the corresponding contract state. Though initially we would expect to use some API params to do this filtering (like pagination already supported) or to see NFTs returned when balance_v2 is called.

To checkout delivered vSelf API endpoint that calls CovalentHQ please follow this Github link.

What's next for vSelf

This feature will be integrated in main application and we expect users to be able to conveniently add their existing NFTs / SBTs to show-off them on their web3.0-linktree-like profiles. Also we will have to build our indexer infrastructure to lower external API requests rate and amount of communication required for frontend application.

Built With

Share this project:

Updates