WalletConnect Web3 Provider
This implements provider for walletconnect standard.
You can read more about WalletConnect standard here: http://walletconnect.org/
Example
/** * Create WalletConnect Provider */const provider = bridgeUrl: 'https://test-bridge.walletconnect.org' // Required dappName: 'INSERT_DAPP_NAME' // Required rpcUrl:'http://localhost:8545' // Required /** * Create Web3 */const web3 = provider /** * Initiate WalletConnect Session */const session = await web3currentProviderwalletconnect /** * Get Accounts */const accounts = await web3eth if !accountslength // Display QR Code URI const uri = web3currentProviderwalletconnecturi // Listen for session status await web3currentProviderwalletconnect // Get Accounts Again accounts = await web3eth /** * Send Transaction */const txHash = await web3eth /** * Sign Transaction */const signedTx = await web3eth /** * Sign Message */const signedMessage = await web3eth /** * Sign Typed Data */const signedTypedData = await web3eth