Deploying KRC20 Token

KardiaChain Official User Guide for Deploying KRC20 Token on Testnet and Mainnet


  • 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. Create new contract KRC20.sol and copy code from the following sample

// contracts/GLDToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract MyToken is ERC20 {
    constructor(uint256 initialSupply) ERC20("My KRC20 Token", "MYTOKEN") {
        _mint(msg.sender, initialSupply);

3. Deploy contract

Last updated