Events
List of events you can subscribe to in order to get connection updates​
note
These methods are only available when connecting through WalletConnect protocol. Since Coinbase Wallet uses it own connection channel, these methods are not available when user connects with it.
// A connection is settled
_w3mService.onSessionConnectEvent.subscribe((SessionEvent? event) {});
// A connection is deleted (disconnected)
_w3mService.onSessionDeleteEvent.subscribe((SessionDelete? event) {});
// A session expires
_w3mService.onSessionExpireEvent.subscribe((SessionExpire? event) {});
// A session data is updated
_w3mService.onSessionUpdateEvent.subscribe((SessionUpdate? event) {});
// A pairing expires
_w3mService.onPairingExpire.subscribe((PairingEvent? event) {});
// An error occurs during connection
_w3mService.onWalletConnectionError.subscribe((WalletErrorEvent? event) {});
Was this helpful?