🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@statechannels/iframe-channel-provider

Package Overview
Dependencies
Maintainers
5
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@statechannels/iframe-channel-provider

It exposes a global object called `channelProvider` that implements the [EIP 1193](https://github.com/ryanio/EIPs/blob/master/EIPS/eip-1193.md) standard.

latest
npmnpm
Version
0.3.0-hyperspace-patch-0
Version published
Weekly downloads
39
1850%
Maintainers
5
Weekly downloads
 
Created
Source

🔌 IFrame Channel Provider

It exposes a global object called channelProvider that implements the EIP 1193 standard.

Usage

Include the iframe-channel-provider.min.js file in your app via a script tag:

<script src="node_modules/@statechannels/iframe-channel-provider/dist/iframe-channel-provider.js"></script>

Then, enable the provider, passing on an URL to where the Wallet UI hosted.

window.channelProvider.mountWalletComponent('http://xstate-wallet.statechannels.org');

In order for the wallet connection to be useful, you'll want to enable it by calling .enable(). This method tells the wallet to establish a connection with the user's Web3 provider.

For more information see https://docs.statechannels.org

FAQs

Package last updated on 28 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts