Detecting if a provider has a valid signer
See original GitHub issueIs there a way to check if a given provider has a valid signer (i.e., if I can send signed transactions with it?)
The reason for this is that I’m using web3-react
, that injects an ethers provider. Besides this, my dapp connects to Infura by default, and then to MetaMask when the user clicks some button. So I want to be able to render some components when MetaMask is being used but not when using Infura (since it’s “read-only”).
Is this possible? Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
The 3 Ways Notaries Can Properly Identify Signers | NNA
There are three major methods of identifying signers, each with its own set of guidelines, procedures and challenges.
Read more >Authentication | GovInfo
You can check the validity of a signature at any time. To do so, open the document in Adobe Acrobat or Adobe Reader....
Read more >Signers - ethers
A Signer in ethers is an abstraction of an Ethereum Account, which can be used to sign ... Returns the number of transactions...
Read more >Validating digital signatures, Adobe Acrobat
In Acrobat or Reader, the signature of a certified or signed document is valid if you and the signer have a trust relationship....
Read more >Complying with Medicare Signature Requirements - CMS
A mark or sign the ordering or prescribing physician or ... We allow stamped signatures if you have a physical disability and can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For these purposes I thin the “part of state” makes the most sense, so I’m going to close this now. But please feel free to continue discussion or propose ideas (that don’t break the abstraction ethers tries to employ); I monitor closed issues. Or re-open it.
Thanks! 😃
@jparklev I just make part of the state of the application the fact that the user is connected or not. How you do this depends on your app, of course.