@acentswap/multiwallet-ethereum-walletconnect-connector 中文文档教程
@acentswap/multiwallet-ethereum-walletconnect-connector
这个包为 WalletConnect 移动钱包提供了一个连接器。
Usage
new EthereumWalletConnectConnector({
rpc: {
// Note, many WalletConnect wallets don't support non-mainnet networks
// Metamask Mobile has been tested and confirmed to work however
42: `https://kovan.infura.io/v3/${process.env.REACT_APP_INFURA_KEY}`,
},
qrcode: true,
debug: true,
});
Parameters
parameter | type | description |
---|---|---|
debug | boolean | Print debug messages |
rpc | { integer: string } | A map of chain ids to Websocket RPC URLs |
qrcode | boolean | Whether to show a qrcode modal |
@acentswap/multiwallet-ethereum-walletconnect-connector
This package provides a connector for WalletConnect mobile wallets.
Usage
new EthereumWalletConnectConnector({
rpc: {
// Note, many WalletConnect wallets don't support non-mainnet networks
// Metamask Mobile has been tested and confirmed to work however
42: `https://kovan.infura.io/v3/${process.env.REACT_APP_INFURA_KEY}`,
},
qrcode: true,
debug: true,
});
Parameters
parameter | type | description |
---|---|---|
debug | boolean | Print debug messages |
rpc | { integer: string } | A map of chain ids to Websocket RPC URLs |
qrcode | boolean | Whether to show a qrcode modal |