Skip to main content

Using Remix and Metamask

Remix is an IDE for smart contract development, including compilation, deployment, testing, and debugging.

Check out the official documentation to learn more about setting up and using Remix.

For help setting up MetaMask, please visit the official documentation.

Connecting Remix to Mix via MetaMask

Remix supports the following environments for contract deployment via Mix:

  • Javascript VM
  • Injected Web3
  • Web3 Provider

Using MetaMask with Remix is an example of Injected Web3, which we shall discuss shortly.

Select "Remix online IDE" option

Select "Deploy & run transactions" option

Select "Injected Provider - Metamask" option under Environment

Select the Metamask Account you want to connect. Make sure you selected Mix Network in the Metamask Network option.

Click Connect to link your Remix IDE to Metamask with Mix network connection.

Remix IDE is successfully connected to Metamask with Mix Network connection.

Compiling your contract in Remix

Compiling a smart contract on Mix Network

Deploying your Contract

Deploying your smart contract on Mix Network

You can view your deployed smart contract transaction at Mix explorers.

Mix Mainnet Explorer is at https://miexs.com/

Mix Testnet Spark is at https://miexs.com/