Example Bitkub Chain SDK Compatible KAP20 Smart Contract

🛑 Warning: The contract is not ready for production. It is intended for demonstration and educational purposes only. Please ensure you thoroughly review, test, and audit the contract before deploying it to a live environment.

The contract presented on this page is Bitkub Chain SDK compatible. To get started with using the SDK, all you need to do is input the correct values into the constructor.

Source Code

You can access the source code of the example contract within the Remix workspace. Learn more about how to clone the Remix workspace here.

The contract is located in the Solidity file named BKCSDKExampleKAP20.sol.

Constructor

contract ExampleKAP20 is KAP20 {
    constructor(
        string memory _name,
        string memory _symbol,
        string memory _projectName,
        uint8 _decimals,
        address _kyc,
        address _adminProjectRouter,
        address _committee,
        address _transferRouter,
        uint256 _acceptedKYCLevel
    )
        KAP20(
            _name,
            _symbol,
            _projectName,
            _decimals,
            _kyc,
            _adminProjectRouter,
            _committee,
            _transferRouter,
            _acceptedKYCLevel
        )
    {}

    ...
}

Here are the parameters for deploying the ExampleKAP20 contract on the Bitkub Chain testnet:

  • _name: This is the name of your ERC20 token.

  • _symbol: The symbol that represents your token (e.g., "ETH").

  • _projectName: sdk-example-project.

  • _decimals: 18.

  • _kyc: Set this to 0x99166455989a868d5151799c716B3c1Be95D5114.

  • _adminProjectRouter: 0x0Fe7773B44b2CFE4C9778616Db526359Ccda16bE.

  • _committee: Use your MetaMask address for this parameter.

  • _transferRouter: 0xe23fbAd6E1b18258AE1a964E17b1908e0690DdD4.

  • _acceptedKYCLevel: 0.

💡 Note: The provided arguments are for testing purposes on the testnet only. Make sure to adjust the values appropriately for production environments.

Last updated