Use Moonbase Alpha TestNet DEV token with Metamask (Web3 Injected)

Use Moonbase Alpha TestNet DEV token with Metamask (Web3 Injected)

I. Deploy Smart Contract ERC-20 without developer node by MetaMask and distribute tokens II. First NFT game using DEV tokens III. Staking DEV tokens

ยท

1 min read

I. remix.ethereum.org
Deploying Basic Contract to Moonbeam

pragma solidity ^0.7.0;

import 'https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.2.0-solc-0.7/contracts/token/ERC20/ERC20.sol';

// This ERC-20 contract mints the specified amount of tokens to the contract creator.
contract MaeToken is ERC20 {
  constructor(uint256 initialSupply) ERC20("MarToken", "MAETOK") {
    _mint(msg.sender, initialSupply);
  }
}

Three simple steps

Screenshot 2021-08-31 at 19.40.33.png

Create your workspace and .sol file

Screenshot 2021-08-31 at 22.33.30.png

Put Basic Contract

Screenshot 2021-08-31 at 22.39.27.png

Injected Web3 and Deploy 8M tokens

Screenshot 2021-08-31 at 23.01.34.png

Letโ€™s specify an initial supply of 8M tokens
Since this contract uses the default of 18 decimals, the value to put in the box is 8000000000000000000000000

Deploy by MetaMask

Screenshot 2021-08-31 at 23.16.27.png

Screenshot 2021-08-31 at 23.20.31.png

Paste your contract to MetaMask and send Tokens

Screenshot 2021-08-31 at 23.27.06.png

Screenshot 2021-08-31 at 23.27.52.png

Screenshot 2021-08-31 at 23.34.36.png

Screenshot 2021-08-31 at 23.35.20.png

Transaction complete

Screenshot 2021-08-31 at 23.37.43.png

more information -- > docs.moonbeam.network/getting-started/local..

II. movr.zoombies.world

Screenshot 2021-08-31 at 13.21.10.png

Screenshot 2021-08-31 at 13.22.44.png

your_NFT_Crypt.png

more instruction -- > movr.zoombies.world/help

III. Staking DEV token -- > apps.moonbeam.network/moonbase-alpha/staking

Screenshot 2021-09-01 at 02.33.34.png

p.s. faucet for help -- > discord.gg/nzSsyueY

Screenshot 2021-08-31 at 14.05.06.png

MaestroIt8#7777

ย