Close provider #3800
Unanswered
nghianguyen119
asked this question in
Q&A
Close provider
#3800
Replies: 4 comments
-
Hi! Did you manage to solve this? Running into the same issue here :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
the same |
Beta Was this translation helpful? Give feedback.
0 replies
-
In v6, you can use |
Beta Was this translation helpful? Give feedback.
0 replies
-
(I don’t know what is meant by “log out” in the OP though) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Feature
On web3.js we can close a provider to delete all related info of a provider, this is useful on
web3modal
when we want to disconnect and reconnectOn web3.js:
provider.currentProvider.close()
https://github.com/Web3Modal/web3modal/blob/master/example/src/App.tsx#L470
I searched on the documentation but not sure there is such function on ethers.js, the trouble is when I use
web3modal
withethers
, I can't log out completely the provider.Code Example
No response
Beta Was this translation helpful? Give feedback.
All reactions