Home Crypto Building your own Token in Ethereum Testnet

Building your own Token in Ethereum Testnet

0
Building your own Token in Ethereum Testnet

[ad_1]

1. Create Smart Contracts using OpenZeppelin Wizard

Using this you can access to Wizard tool which is mainly used to create different type of Tokens in Solidity

Choose ERC20 if you want to create a fungible Token and ERC721 or ERC1155 if you want to create a Non Fungible Token

You’ll be able to choose which features you want to add and also Name and Symbol for your Token in side Bar

Hereby an example of Token Creation:

Name: Eroblesca Token

Symbol: ERT

Premint: 1000

Mintable: ✓

Burnable: ✓

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import “/token/ERC20/ERC20.sol”;
import“/token/ERC20/extensions/ERC20Burnable.sol”;
import “/access/Ownable.sol”;

contract EroblescaToken is ERC20, ERC20Burnable, Ownable {
constructor() ERC20(“Eroblesca Token”, “ERT”) {
_mint(msg.sender, 1000 * 10 ** decimals());
}

function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
}

2. Copy/Open this Smart Contract in Remix

Once you customized your token, you could export it to Remix using “Open in Remix” button

New to trading? Try or on

3. Showing Ethereum Testnets in Metamask

Open Metamask and go to “Settings” — “Advanced” — “Show Test Networks”

4. Get free “geth” from Alchemy faucet

Copy your Public Metamask Account clicking on your account public direction

Go to Alchemy Faucet in this and get Free geth from Testnet faucet only pasting your wallet (Previously copied from Metamask) in alchemy goerli faucet

5. Compile

It’s possible to access Remix via Wizard or clicking this

Go to Remix and compile the Smart Contract. In left bar, solidity icon should appear with a Green check

6. Deploy in Blockchain

After compile is successfully done click in the next side bar icon and we should change deploying environment by clicking and choosing injected Metamask. Then confirms it on Metamask pop-up

Then we should go to Metamask and choose Goerli Blockchain to deploy in Metamask

7. Launch Token in Goerli

Deploy it clicking on Deploy and confirm deployment in Metamask

8. Verify the Smart Contract

Finally we could use the interface in Remix or verify the Smart Contract in Etherscan creating an account and then, we’ll be able to create an API Key in our Ethercan Account

Activate Verify Contracts Plugin in Remix and paste Api Key (previously copied in Blockexplorer)

After it click on “house” icon in side bar, choose your Smart Contract Name and paste the Smart Contract direction (showed in deploy or in Goerli Etherscan)

Finally checks if it’s verified pasting your Smart Contract Direction in Search Bar

9. Send Tokens to another Wallets

Add Token created to your Metamask by pasting Smart Contract direction

Go to your new Token and click send, then, paste your destination Metamask account



[ad_2]

Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here