setupWalletOnConnectEvent function

  1. @JS('dwa.setupWalletOnConnectEvent')
void setupWalletOnConnectEvent(
  1. BaseWalletAdapter walletAdapter,
  2. void onConnect(
    1. PublicKey publicKey
    )
)

The onConnect event is emitted after the wallet has successfully connected. This event is typically used to update the application state to reflect that the wallet is connected.

Implementation

@JS('dwa.setupWalletOnConnectEvent')
external void setupWalletOnConnectEvent(BaseWalletAdapter walletAdapter,
    void Function(PublicKey publicKey) onConnect);