πXverse Wallet events
How apps can respond to user actions using wallet events
Listen to wallet events
const removeListener = Wallet.addListener('accountChange', (event) => {
console.log('The account has changed.', event);
exampleUpdateUi();
exampleRequestPermissionsForCurrentAccount();
});
// When no longer needed, the listener can be removed by calling the function
// returned by `addListener`.
removeListener();accountChange event
Property
Description
accountDisconnected event
Property
Description
networkChange event
Property
Description
π networkAdded event
Property
Description
Last updated