// Subscribe to accounts change
provider.on('accountsChanged', (accounts: string[]) => {
// Subscribe to chainId change
provider.on('chainChanged', (chainId: number) => {
// Subscribe to session connection
provider.on('connect', () => {
// Subscribe to session disconnection
provider.on('disconnect', (code: number, reason: string) => {
console.log(code, reason)