Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect Ethereum Providers via web3_clientVersion #621

Closed
sohkai opened this issue Feb 18, 2019 · 2 comments
Closed

Detect Ethereum Providers via web3_clientVersion #621

sohkai opened this issue Feb 18, 2019 · 2 comments
Assignees

Comments

@sohkai
Copy link
Contributor

sohkai commented Feb 18, 2019

Not sure if web3.js actually supports this JSON-RPC endpoint, but this should be the most reliable way of obtaining the type of provider being injected.

@sohkai
Copy link
Contributor Author

sohkai commented Mar 20, 2019

Turns out this should be possible; it's not in the documentation, but you can access this via web3.eth.getNodeInfo() in newer versions of web3.js.

@sohkai
Copy link
Contributor Author

sohkai commented Mar 18, 2020

Closing; this should be handled at the use-wallet level (aragon/use-wallet#15)

@sohkai sohkai closed this as completed Mar 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant