Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

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

Notifications You must be signed in to change notification settings

yqrashawn/conflux-portal-inpage-provider

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConfluxPortal Inpage Provider

Used to initialize the inpage ethereum provider injected by ConfluxPortal.

Installation

yarn add @yqrashawn/conflux-portal-inpage-provider

Usage

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

// compose the inpage provider
var inpageProvider = new ConfluxPortalInpageProvider(confluxPortalStream)

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%