Skip to content

nahiddgh/Base-deployment-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

  1. 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

  1. Open Remix

Go to https://remix.ethereum.org

  1. Create Your Solidity File

  2. In the File Explorer, click "contracts" > "+" and name it MyBaseToken.sol

  3. Paste the code

    1. Compile the Contract
  4. Click the Solidity Compiler tab.

  5. Select version 0.8.20

  6. Click Compile MyBaseToken.sol

    1. Deploy Using MetaMask
  7. Click the Deploy & Run Transactions tab.

  8. Under Environment, select Injected Provider - MetaMask

MetaMask will ask for permission to connect.

  1. Choose your contract (MyBaseToken)

  2. Enter the constructor argument (e.g. 1000000000000000000000000 for 1M tokens with 18 decimals)

  3. Click Deploy

  4. Confirm the transaction in MetaMask

  5. copy the contract you just deployed

  6. Go to: https://basescan.org

  7. Search your contract address.

  8. Click "Verify and Publish".

  9. Fill out:

Compiler version (must match exactly)

Optimization settings

if you have any questions send me dm on Twitter

About

Let's learn how to deploy on base network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published