Display all bep20 tokens of a user

How can i display all bep20 tokens of a user ?

You can show all ERC20 tokens on bsc network.
That is what BEP20 means.

ah okay so i have already implemented it basically. When im on etherium theGetAllerc20 method gives me all erc20 tokens and when im on bsc all bep20 tokens get displayed ?

Yes, you should use getTokenBalances, other then that you are already doing it

1 Like

can i use for chain bsc ?

yes, you can use that for chain bsc, are you using that REST api instead of the sdk?

yes is that something bad ???

no, it is fine, you can try that directly in web3api interface:

where you can select the chain directly when you try a function