Skip to main content

Summary

The useWalletConnectorEvent hook is used for handling events from a WalletConnector or an array of WalletConnectors. This hook allows you to specify an event to listen to and a handler function that will be called whenever the event is emitted. The handler will receive the event arguments followed by the instance of the WalletConnector that emitted the event. We currently support the following events:
  • accountChange
  • chainChange
  • disconnect

Example

Listen to primary wallet connector account changed
Listen to all wallets connectors for the disconnect event