Skip to content

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

@dadkilll02

Description

@dadkilll02

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

im havings this contract,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions