Is there a way to let a user chose which linked account they want to switch to ? and to use for txns ?
You would need to switch the active account/wallet that the current provider is using e.g. in MetaMask. Any transactions after that should use that active account. In general I donât think itâs possible to specifically choose an account/address to switch to programmatically for any wallet. The user can decide for themselves which address they want to use.
Is there a way to optionally link a new walletconnect address and metamask? like have one button that says âadd a metamask walletâ and another that says âadd a walletconnect walletâ
For MetaMask you can use Moralis.link.
For WalletConnect you could save addresses manually to the current userâs object.
Actually if you re Moralis.enableWeb3(), and pass {provider: âwalletconnectâ}, you can prompt the user to sign a message in walletconect to log in
Yes you can get the address that way without requiring Moralis authentication. But you will still need to link the address in some way.