Upon page load, the browser will check for the Metamask browser extension. If extension is not installed the button will display an error message. Once button is pressed it will open the Metamask modal. It uses Metamask etherium wallet to sign in and displays the user wallet address. If user clicks button after logging in, the button will sign the user out again.
Note: Make sure you have Metamask installed and have a valid account/wallet; should also have Python installed to run server locally
- Clone repo
- Open repo directory
- In your terminal of repo directory run:
python3 -m http.server
- Navigate to
localhost:8000
in browser that has Metamask installed - Click button to connect wallet
- Should display wallet address