Events

accountsChanged

accountsChanged wiil be triggered when user switch connected account in auro wallet
1
window.mina.on('accountsChanged', handler: (accounts: string[]) => void);
Copied!
1
window.mina.on('accountsChanged', handler: (accounts: string[]) => {
2
console.log('connected accounts', accounts)
3
});
4
Copied!
Last modified 5mo ago
Copy link