A user on a minting website clicks the 'Connect Wallet' button. What is the primary role of the Web3 provider (like MetaMask) at this stage?
-
A
To immediately send ETH from the user's wallet to the minting contract.
-
B
To securely generate a new private key for the minting transaction.
-
C
To inject a global JavaScript object (e.g., `window.ethereum`) into the browser, allowing the frontend to request account access.
-
D
To deploy a new instance of the NFT smart contract for the user.