This callback will be called when a new wallet is added to the userWallets when signing in with a wallet, linking a new wallet (connect-and-sign mode) or connecting a new wallet (connect-only mode).


    eventsCallbacks: {
      onWalletAdded: (args) => {
        console.log('onWalletAdded was called', args);
 {/* ... rest of your app ... */}

Callback Argument Value

  wallet: Wallet;
  userWallets: Wallet[];

This is called with the wallet that was just added and the updated list of wallets.

For details about userWallets, see here