I'm currently working on a Solana Dapp portfolio project where users can connect their wallets and view their token and NFT holdings. I am done making the wallet connection buttons and installing Solana Web3.js and SPL tokens for browser use. However, I've been getting a problem when I want to display holdings of tokens other than SOL.
I've seen YouTube tutorials and documentation, but I couldn't find a comprehensive solution for fetching and displaying the holdings of various tokens in a Solana wallet. While I can retrieve the SOL balance using the getAccountInfo() function, I'm struggling to find a similar method for other tokens in the wallet.
If anyone in the community has experience or insights on how to achieve this, I would greatly appreciate your guidance. Sharing code examples or pointing me in the right direction in the Solana documentation would be incredibly helpful. Thank you in advance for your assistance!