Coding task · Blockchain and Web3 course · Module 5: Wallets & Transactions

Connecting a Wallet to a dApp

Write JavaScript code to connect a MetaMask wallet to the application

Task

Implement a function that connects to MetaMask and returns the user's address: