@acentswap/multiwallet-ethereum-mewconnect-connector 中文文档教程
@acentproject/multiwallet-ethereum-mewconnect-connector
此包为 MEW 移动应用程序提供了一个连接器
Usage
new EthereumMEWConnectConnector({
rpc: {
1: `wss://mainnet.infura.io/ws/v3/${process.env.REACT_APP_INFURA_KEY}`,
},
chainId: 1,
debug: true,
});
注意,必须在 HTTPS 连接上提供服务才能工作,因此本地主机测试可能会出现问题。
Parameters
parameter | type | description |
---|---|---|
debug | boolean | Print debug messages |
chainId | integer | Which chain to connect to (currently Mainnet only) |
rpc | { integer: string } | A map of chain ids to Websocket RPC URLs |
@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
parameter | type | description |
---|---|---|
debug | boolean | Print debug messages |
chainId | integer | Which chain to connect to (currently Mainnet only) |
rpc | { integer: string } | A map of chain ids to Websocket RPC URLs |
更多