@dexon-foundation/dekusan-inpage-provider
v1.2.4
Published
A DEXON provider that connects over a WebExtension port.
Downloads
10
Readme
MetaMask Inpage Provider
Used to initialize the inpage ethereum provider injected by MetaMask.
Installation
npm install metamask-inpage-provider -S
Usage
// Create a stream to a remote provider:
var metamaskStream = new LocalMessageDuplexStream({
name: 'inpage',
target: 'contentscript',
})
// compose the inpage provider
var inpageProvider = new MetamaskInpageProvider(metamaskStream)