In my application I need to generate new addresses from time to time. I need them for SOL as well as for the stable coins on Solana. A new address will be assigned to a new user.
Since Solana has separate addresses for tokens, I've become confused with "getAssociatedTokenAddress" function.
a) Will I have to generate an associated addresses for USDT, USDC and probably 1-2 others well-known stable coins when I generate a new SOL address? In order to receive those stable coins.
Or b) could I give a user a new SOL address and he would be able to use it for everything: SOL, USDT, USDC, USDD...? A user would use it by only sending coins to it.
If an associated address for a stable coin is required, how to generate it in web3
out of the main address for SOL?