Skip to content

Walletclient instance support watch chainChange & accoutChange ? #186

Discussion options

You must be logged in to vote

Could you not just use the provider directly?

E.g.

window.ethereum.addEventListener(…)

viem doesn’t use EIP-1193 event listeners, so I don’t think it’s worth implementing.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zouhangwithsweet
Comment options

Answer selected by jxom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants