Skip to main content

Events

connect​

The provider emits connect with solanaWeb3.PublicKey when solana.connect succeeds.

disconnect​

The provider emits disconnect with undefined when solana.disconnect is called.

accountChanged​

The provider emits accountChanged when selected account changed.

  1. If selected account is connected, solanaWeb3.PublicKey will be emitted.
  2. If selected account is deleted or disconnected, null will be emitted.