@statechannels/iframe-channel-provider

iframe-channel-provider package

Communicate with a statechannels wallet via JSON-RPC over postMessage

Remarks

Attaches a channelProvider to the window object.

Classes

ClassDescription
IFrameChannelProvider(BETA) Class for interacting with a statechannels wallet

Interfaces

InterfaceDescription
ChannelProviderInterface(BETA) The generic JsonRPC provider interface that mimics EIP-1193 and the window.ethereum object in the browser.
IFrameChannelProviderInterface(BETA) For environments where the wallet is proxied within an iFrame embedded on the application's DOM.
Web3ChannelProviderInterface(BETA) For environments where the destinationAddress is secret until the wallet is "enabled".

Variables

VariableDescription
channelProvider(BETA) Class instance that is attached to the window object

Type Aliases

Type AliasDescription
WalletJsonRpcAPI(BETA)
Last updated on by geoknee