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.
- If selected account is connected, solanaWeb3.PublicKey will be emitted.
- If selected account is deleted or disconnected,
nullwill be emitted.