@dexon-foundation/dekusan-inpage-provider

1.2.4 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i @dexon-foundation/dekusan-inpage-provider

Weekly Downloads

1

Version

1.2.4

License

MIT

Unpacked Size

8.34 kB

Total Files

4

Last publish

Collaborators

  • chaoweichiu
  • cobinhood-dev
  • boczeratul