This is a simple demo app that allows users to connect their Web3 wallet to the app and displays their account and the network ID they are connected to.
- Clone the repository to your local machine.
- Install the necessary dependencies by running
npm install
in the project directory. - Start the app by running
npm start
. - Open your browser and navigate to
http://localhost:3000
. - If you have previously connected to a wallet and your wallet is still connected, the app will automatically connect to your wallet.
- If you have not previously connected to a wallet or your wallet is disconnected, click the "Connect Wallet" button to connect.
- Once you are connected, the "Connect Wallet" button will be replaced with a "Disconnect Wallet" button.
- The app will display your account address and the network ID you are connected to.
Note: This app requires @web3-react/core
and @/config/web3
packages to be installed and configured properly in your project.