Deploying KRC20 Token
KardiaChain Official User Guide for Deploying KRC20 Token on Testnet and Mainnet
Prerequisite
  • Connect your MetaMask wallet to KardiaChain mainnet or testnet. Detail instruction can be found here.
  • Have some KAI in your wallet to use as transaction fee
Deploying a new KRC20 token can be done by using Remix and ERC20 contract from Open Zeppelin open source.
  1. 2.
    Create new contract KRC20.sol and copy code from the following sample
1
// contracts/GLDToken.sol
2
// SPDX-License-Identifier: MIT
3
pragma solidity ^0.8.0;
4
5
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
6
7
contract MyToken is ERC20 {
8
constructor(uint256 initialSupply) ERC20("My KRC20 Token", "MYTOKEN") {
9
_mint(msg.sender, initialSupply);
10
}
11
}
Copied!
3. Deploy contract
Deploy KRC20 contract
Deploy successfully
Copy link