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.

Detecting if a provider has a valid signer

See original GitHub issue

Is 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ricmoocommented, Sep 8, 2020

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! 😃

1reaction
fvictoriocommented, Jun 3, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

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