Features

Connect to all wallets available on WalletConnect and get back necessary variable to interact with smart contracts. (Currently tested for Rainbow and MetaMask).

Usage

Web3Connect w3c = Web3Connection();
w3c.connect() //to establish connection and get a pop up to choose wallet
w3c.disconnect() //to kill the session
w3c.enterRpcUrl("http://localhost:7545") //to enter a rpcUrl of your choice 
w3c.account //String containing account number with which connection was made
w3c.credentials //WalletConnectEthereumCredentials required to interact with smart contracts

https://user-images.githubusercontent.com/54764168/162468716-9bb27ca1-37e1-4171-ba45-0736101c245c.mp4

Additional information

Created as a starting point for a better wallet integration experience. Feel free to create issues on the repository to make the package better.

Libraries

web3_connect