Skip to main content
You can listen to events emitted by the wallet provider by using the onWalletProviderEvent. It will return an unsubscribe function that you can call to stop listening to the event.

Usage

Available events

  • accountsChanged: (params: { addresses: string[] }) => void;
  • disconnected: () => void;
  • networkChanged: (params: { networkId: string }) => void;
Last modified on June 23, 2026