8.0.0 • Published 2 years ago

@acentswap/multiwallet-ethereum-mewconnect-connector v8.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@acentproject/multiwallet-ethereum-mewconnect-connector

This package provides a connector for the MEW mobile application

Usage

new EthereumMEWConnectConnector({
    rpc: {
        1: `wss://mainnet.infura.io/ws/v3/${process.env.REACT_APP_INFURA_KEY}`,
    },
    chainId: 1,
    debug: true,
});

Note, must be served on an HTTPS connection in order to work, so local-host testing can be problematic.

Parameters

parametertypedescription
debugbooleanPrint debug messages
chainIdintegerWhich chain to connect to (currently Mainnet only)
rpc{ integer: string }A map of chain ids to Websocket RPC URLs