Replies: 1 comment 1 reply
-
I don’t think this is something that is possible. If you have a URL that is sufficient to recreate a new instance of a JsonRpcProvider, but things like the events being listened too are not preserved. Also, JsonRpcProviders could be backed by non-URLs, like the Web3Provider which often is connected to MetaMask; it would be a huge security issue if you could pass MetaMask around like this, so I’m fairly certain you cannot. Depending what you want, I would suspect the network name is sufficient though, and you can always use Anyways, I think that is the best you can do. Let me know if you figure something else out. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋
I want to support the following use-case:
(window.open)
appears with a lis of providers to select fromethers
Is this possible with the
ethers
? If not, any advice or guidance on how to implement this flow? Is this something that is do-able with the WalletConnect protocol?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions