I am trying to get the balance in my wallet of specific tokens with no luck. I have found examples online on how to do this task using web3.js, but the methods used seem to be different. I also found this helpful example: How to view custom token balance in ether wallet using web3, however it doesn't seem to be working for me.
Is anyone able to provide a short script that can do this?
As an example, on the polygon network I expect the wallet address 0x0598acaf4eA05D41844b23423ff4E2d9Cf2b481E to contain 0.882 USDT. Is there anyway to get this programmatically?