Listen for account changes

How can I listen for account/network/balance changes? I tried to subscribe the lifecycle events (https://web3auth.io/docs/sdk/pnp/web/no-modal/initialize#subscribing-the-lifecycle-events), but it only listens for adapter changes.

hi @felipe ,

I hope you are doing great. For handling account, network, and balance events, I suggest looking into libraries like ethers.js or web3.js. These libraries offer comprehensive support for various blockchain-related tasks.

You can find helpful examples in our repository. Most of them utilize web3.js, providing clear guidance on checking balances and utilizing methods like addChain/switchChain from our SDK.

Explore our examples here: Web3Auth PnP Examples.

These resources should assist you in effectively managing your blockchain development needs.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.