With Solana, there is the possibility to get accounts which obviously depend on the wallet. This can be done using the wallets GetAccount(index) function, e.g. with
Account fromAccount = wallet.Account;
Account toAccount = wallet.GetAccount(42);
(BTW, I used Solnet with C# for doing some tests, but probably this getaccount functionality is also available in the cli or the json rpc, I didn't check this so far)
I'm totally confused for what this is good for? E.g. in Phantom there is only the wallet account used. When minting, I can use arbitrary accounts. On the other hand there are mechanisms like PDA and ATA.
I'm wondering:
- when minting shall I create several wallets and use the wallet account instead? But then, how can I transfer the tokens to the ATAs from the InitialAccount to some ATAs?
- the Phantom wallet only shows or supports the wallet account (=pubkey), there is no (at least I found no) possibility to use these "depending" accounts mentioned above. Credits, which are on depending accounts are not shown (thankfully I'm using the devnet only so far).
- shall I use these wallet.GetAccount(...) function at all?
- what can I do with this?
Please enlighten me ;-) Thanks in advance!