MetaMask Inpage Provider
The inpage Ethereum provider object injected by MetaMask into web pages. Contains a lot of implementation details specific to MetaMask, and is probably not suitable for out-of-the-box use with other wallets.
Installation
yarn add metamask-inpage-provider
Usage
// Create a stream to a remote provider:const metamaskStream = name: 'inpage' target: 'contentscript' // this will initialize the provider and set it as window.ethereum const ethereum = window