wallets module to get access to all your user’s wallets and perform actions with them:
Working your Primary Wallet
You can access the primary wallet viaclient.wallets.primary as well as set it with client.wallets.setPrimary.
This example sets the first user wallet as the primary wallet on click: