Create Smart Contract In Remix

Ethereum's Online IDE

Connecting MetaMask to Remix

Open up Remix in the browser and go to the "DEPLOY & RUN TRANSACTIONS" icon on left side:

DEPLOY & RUN TRANSACTIONS ICON

In the “ENVIRONMENT” drop-down menu, select “Injected Provider - MetaMask”:

Select Injected Provider - MetaMask

Make sure you are on Custom (43113) network, which is Avalanche Fuji Testnet:

Connected to (43113) - Avalanche Fuji Testnet

If you are not connect to different network, go into MetaMask and connect to the Avalanche Fuji Testnet


Creating your Smart Contract

Create a smart contract called TransferUSDCBasic.sol. First, go to the 1. “FILE EXPLORER” icon and then click the 2. “Create new file” icon:

Create a new Solidity file

Name the new Solidity file TransferUSDCBasic.sol and a new tab will open in Remix:

Your new blank Solidity file
  • Code is available here: GitHub

  • Copy and paste the code into the new TransferUSDCBasic.sol file

  • Or copy and paste this following code:

Last updated