- Setup MetaMask for Base Mainnet
Add the Base network manually if it's not already there:
Network Name: Base Mainnet
RPC URL: https://mainnet.base.org
Chain ID: 8453
Currency Symbol: ETH
Block Explorer: https://basescan.org
- Open Remix
Go to https://remix.ethereum.org
-
Create Your Solidity File
-
In the File Explorer, click "contracts" > "+" and name it MyBaseToken.sol
-
Paste the code
- Compile the Contract
-
Click the Solidity Compiler tab.
-
Select version 0.8.20
-
Click Compile MyBaseToken.sol
-
- Deploy Using MetaMask
-
Click the Deploy & Run Transactions tab.
-
Under Environment, select Injected Provider - MetaMask
MetaMask will ask for permission to connect.
-
Choose your contract (MyBaseToken)
-
Enter the constructor argument (e.g. 1000000000000000000000000 for 1M tokens with 18 decimals)
-
Click Deploy
-
Confirm the transaction in MetaMask
-
copy the contract you just deployed
-
Go to: https://basescan.org
-
Search your contract address.
-
Click "Verify and Publish".
-
Fill out:
Compiler version (must match exactly)
Optimization settings
if you have any questions send me dm on Twitter