@metamask/providers
Advanced tools
Changelog
[16.0.0]
window.ethereum.chainId
has been removed. Use the 'eth_chainId' RPC method instead.window.ethereum.networkVersion
has been removed. Use the 'net_version' RPC method instead.window.ethereum.selectedAddress
has been removed. Use the 'eth_accounts' RPC method instead.networkChanged
event has been removed. The closest equivalent is the chainChanged
event.window.ethereum.send()
no longer resolves net_version
offline (from cache).Changelog
[14.0.0]
extension-port-stream
from ^2.1.1
to ^3.0.0
readable-stream
to ^3.6.2
in resolutionsjson-rpc-middleware-stream
from ^4.2.3
to ^5.0.1
@metamask/object-multiplex
from ^1.3.0
to ^2.0.0
readable-stream@^3.6.2
readable-stream
Changelog
[13.1.0]
initializeProvider()
params object now accepts an optional providerInfo
property with a value of EIP6963ProviderInfo objecteip6963AnnounceProvider()
which supports a wallet by announcing a provider through the eip6963:announceProvider
event and re-announcing the provider whenever an eip6963:requestProvider
event is receivedeip6963RequestProvider()
which supports a dapp by dispatching an eip6963:requestProvider
event and invoking a callback for each eip6963:announceProvider
event receivedEIP6963AnnounceProviderEvent
typeEIP6963ProviderDetail
typeEIP6963ProviderInfo
typeEIP6963RequestProviderEvent
type