How to change the linked account for txns with moralis

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.