I'm not able to get the balance of a token inside the wallet

Hello guys, I’m using the example code to get the balance of a specific bep20 token inside my wallet, but coins I’ve never seen appear… does anyone have an example of how to get the balance of a specific bep20 token inside the wallet? (node.js code)

thank you for your attention :smiley:

You can use getTokenBalances and filter by the specific contract address for the token you want with the token_addresses parameter. So you can use either the REST API or the Moralis SDK.

You can test it here if you scroll down to GET /{address}/erc20.