2. Connect your wallet to Remix
Last updated
Was this helpful?
Last updated
Was this helpful?
In this guide, you'll learn how to connect your wallet and the Zama Plugin in Remix IDE to interact with fhEVM smart contracts.
Before starting, ensure you have the following:
MetaMask or another Ethereum-compatible wallet installed.
Zama Plugin installed in Remix IDE (See Setting up Remix)
Note thate when using Remix to connect a wallet, issues may arise if multiple wallet extensions are installed (e.g., MetaMask, Phantom). This is a known issue of Remix that can affect wallet connection functionality. If you encounter errors, consider keeping only MetaMask as the active wallet extension, removing other wallet extensions, and refreshing Remix cookies and try to reconnect.
If you're using Metamask, the Sepolia testnet should be pre-configured. Follow the steps to set it up:
Open MetaMask.
Click the network dropdown at the top left corner, and select Sepolia Test Network.
Ensure you have Sepolia ETH available. If you don’t have enough ETH, use a Sepolia faucet to request free SepoliaETH for testing:
If Sepolia isn’t visible:
Go to Settings > Advanced.
Toggle Show test networks to ON.
If Sepolia isn’t pre-configured in your wallet, add it manually:
Open your wallet’s network settings.
Click Add Network or Add Network Manually.
Enter the following details:
Network Name: Sepolia
RPC URL: (provided by your node provider, e.g., Alchemy or Infura)
Chain ID: 11155111
Currency Symbol: SepoliaETH
Block Explorer URL: https://sepolia.etherscan.io
Zama Plugin provides the Zama Coprocessor - Sepolia configuration that ensures Remix and the wallet are properly set up to interact with fhEVM smart contracts.
To complete the configuration:
Open the Zama Plugin in Remix from the side pannel.
Click Connect your wallet.
Confirm the connection in MetaMask.
In the Zama Plugin, select Zama Coprocessor - Sepolia.
Click Use this configuration to finalize the setup.
Once successful, you should see the green text in the terminal indicating that the configuration is ready.
Follow the steps to connect your wallet to Remix:
Open Remix and navigate to Deploy & run transactions.
Under Environment, select Injected Provider - MetaMask.
MetaMask will prompt a connection request. Click Connect to proceed.
Choose your wallet address in Account.
Now that your wallet is connected and your SepoliaETH balance is ready, you can proceed to deploy the ConfidentialERC20Mintable
contract!