/xdc-pay-wallet-inpage-provider

An ethereum provider that connects over a stream, as injected into websites by MetaMask.

Primary LanguageJavaScript

Nifty Wallet Inpage Provider

Used to initialize the inpage ethereum provider injected by MetaMask.

Usage

// Create a stream to a remote provider:
var niftywalletStream = new LocalMessageDuplexStream({
  name: 'inpage',
  target: 'contentscript',
})

// compose the inpage provider
var inpageProvider = new MetamaskInpageProvider(niftywalletStream)