Skip to main content

Remix

In this tutorial, we'll walk through creating a basic Remix project and deploying a sample contract.

Prerequisites​

Before you begin, ensure you:

  1. Set up your wallet
  2. Fund your wallet with Linea ETH on either the testnet, or mainnet

Explore the Remix workspace​

To start using Remix, navigate to their website. The default project includes a code sample with a configured smart contract.

Remix configured smart contract code

Compile a Remix contract​

Navigate to the Solidity compiler tab on the left navigation and click Compile contract.

Remix compile contract

Deploy the contract​

You can deploy a smart contract using the injected provider, meaning Remix can auto-detect the network you're on and your account information. To do this, navigate to the Deploy & run transactions tab.

caution

The public endpoints are rate limited and not meant for production systems. To use Infura, you'll need to get an API key. Then, manually add a network to your MetaMask wallet with the information found here.

Switch to the Linea network (mainnet or testnets) in your MetaMask wallet, and from the ENVIRONMENT drop down, select Injected provider - MetaMask.

Remix deploy contract

Then, select Deploy and confirm the transaction. This deploys the contract to the network selected in MetaMask.