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

Currently the following properties are accessible on the MetaMask provider object: #49

Open
LocalLegend517 opened this issue Aug 2, 2024 · 0 comments

Comments

@LocalLegend517
Copy link

Currently the following properties are accessible on the MetaMask provider object:

  • window.ethereum.chainId
  • window.ethereum.networkVersion
  • window.ethereum.selectedAddress

They allow for synchronous access to the last known value of these chain/network attributes. They are not part of the EIP-1193 spec and are not officially listed in our provider API documentation . Despite not being intended for public usage, these properties have been publicly available for some time and we can assume that there are some Dapps out there that now rely on these values being available on the MetaMask provider object. Given this, we should make a best effort to inform developers that usage of these properties is not supported, that these properties will be removed in the future, and what equivalents can be used instead.

Related to the above fields, we also plan on removing the following which have already been properly deprecated:

  • networkChanged event
  • net_version support in window.ethereum.send()

Originally posted by @jiexi in #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant