How to Use Remix with Token Lab (Create testtoken.sol & Deploy)

How to Use Remix with Token Lab (Create testtoken.sol & Deploy)

This guide walks you through compiling and deploying the ERC-20 contract you generate from Token Lab using Remix.

Open Token Lab →

Before you start

  • MetaMask installed (desktop extension or mobile app).
  • Connected to a supported testnet (Sepolia / Amoy / Base Sepolia / Arbitrum Sepolia).
  • A little testnet ETH/MATIC from the Get Test ETH faucet.

Generate the contract from Token Lab

  1. Fill in Name, Symbol, Total Supply, and Mintable.
  2. Click Generate Contract.
  3. The Lab opens Remix with your code embedded. If it doesn’t, use the button Open Remix.

Create a file in Remix

  1. In Remix, open the File Explorer (top left).
  2. Click New File and name it testtoken.sol.
  3. Paste the code from Token Lab if it’s not already preloaded.

Compile

  1. Select Solidity Compiler (the “S” icon).
  2. Compiler version: 0.8.x (any recent 0.8 is fine).
  3. Click Compile testtoken.sol.

Deploy

  1. Go to Deploy & Run (the plug icon).
  2. Environment: choose Injected Provider – MetaMask (this uses your wallet/network).
  3. Make sure MetaMask is on your chosen testnet (e.g., Sepolia).
  4. Click Deploy and confirm the transaction in MetaMask.

Find your contract on the explorer

Copy the deployed address from Remix and paste it into the testnet explorer. You can access explorer links from the Lab’s “Handy Links.”

Optional: Mint more tokens later

If you enabled Mintable, use the mint(address,uint256) function in Remix after deployment. Always use the correct decimals (usually 18).


Back to the tool: Token Lab • More help: Token Lab Guides