question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Will it be possible to access `ethers.providers.Web3Provider` of the connected wallet ? (V2)

See original GitHub issue

We use other libraries which work with ethers.providers.Web3Provider and not ethers.providers.JsonRpcSigner of useSigner()

It would be great if the Web3Provider of the connected wallet can be exposed.

Similar to the useProvider() hook in web3-react.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
0xAsimetriqcommented, Sep 23, 2022

Yep, working on this. Should be available as a hook in next release that will go up either today or on Monday.

0reactions
paouvrardcommented, Dec 14, 2022

Hi @kwebster2 yea the issue was resolved in Beta.5, I tested again with Beta.9 and that’s working well. Make sure to fix the dependency versions like here (I had similar issues with wagmi on the wrong version).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - Ethers.js
A connection to the Ethereum network (a Provider); Holds your private key and can sign things (a Signer). Connecting to MetaMask. // A...
Read more >
How to connect to Ethereum network with ethers.js - QuickNode
1. When someone thinks of developing a dApp the first tool that comes to their mind is web3.js which is ... 2. First,...
Read more >
Web3 Provider - WalletConnect Docs
Setup​. First, instantiate your WalletConnect web3-provider using the following options: Infura or Custom RPC mapping. Infura; Custom RPC.
Read more >
Ethers.js Cheat Sheet - DEV Community ‍ ‍
ethers.js is a library that interact with Ethereum Blockchain. It is a very useful ... Connect web3 const provider = new ethers.providers.
Read more >
ethers.js - How can I get the provider object from a wallet ...
If your wallet is connected to the provider you should be able to get the providers object using wallet.provider.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found