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
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
Create your workspace and .sol file
Put Basic Contract
Injected Web3 and Deploy 8M tokens
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
Paste your contract to MetaMask and send Tokens
Transaction complete
more information -- > docs.moonbeam.network/getting-started/local..
more instruction -- > movr.zoombies.world/help
III. Staking DEV token -- > apps.moonbeam.network/moonbase-alpha/staking
p.s. faucet for help -- > discord.gg/nzSsyueY
MaestroIt8#7777
ย