Deploy on Celestium

Deploying a Smart Contract on Celestium Testnet Using Remix

This guide will walk you through deploying an ERC-20 token smart contract on the Celestium Testnet using Remix , a web-based Solidity IDE.

Prerequisites

Before proceeding, ensure you have the following:

  • A MetaMask wallet connected to the Celestium Testnet.

  • Some test CLT tokens from the Celestium Faucet.

  • Basic familiarity with Solidity and Remix IDE.

Step 1: Connect MetaMask to Celestium Testnet

  1. Open MetaMask and go to Settings > Networks > Add Network.

  2. Enter the Celestium Testnet details:

    • Network Name: Celestium Testnet

    • RPC URL: https://rpc-testnet.celestium.network

    • Chain ID: 252525

    • Currency Symbol: tCLT

    • Block Explorer URL: https://explorer-testnet.celestium.network

  3. Click Save and switch to the Celestium Testnet network.

Step 2: Get Test CLT Tokens

  1. Visit the Celestium Faucet.

  2. Enter your MetaMask wallet address and request test CLT.

  3. Wait for the tokens to be sent to your wallet.

Step 3: Open Remix and Load the Contract

  1. Go to Remix IDE.

  2. Click Create New File and name it Token.sol.

  3. Copy and paste the following Solidity code:

  • Replace "Name Coin" with your token name.

  • Replace "TICKER" with your token symbol.

Step 4: Compile the Smart Contract

  1. In Remix, go to the Solidity Compiler tab.

  2. Select the Solidity Version 0.8.16.

  3. Click Compile Token.sol.

  4. Ensure there are no errors before proceeding.

Step 5: Deploy on Celestium Testnet

  1. Go to the Deploy & Run Transactions tab.

  2. In the Environment dropdown, select Injected Provider - MetaMask.

  3. Make sure your MetaMask is connected to Celestium Testnet.

  4. Click Deploy and confirm the transaction in MetaMask.

Step 6: Verify Deployment

  1. Copy the contract address from Remix.

  2. Visit Celestium Testnet Explorer.

  3. Paste the contract address in the search bar to view details.

Step 7: Interact with Your Token

  1. Add your token to MetaMask:

    • Open MetaMask and click Import Tokens.

    • Enter the contract address.

    • Click Add Token.

  2. Test token transfers:

    • Use Remix to call transfer() to send tokens.

    • Check the balance using balanceOf().

Conclusion

You have successfully deployed an ERC-20 token on the Celestium Testnet using Remix. This token can now be used for further development, testing, or integration with dApps.

For additional support, join the Celestium Community:

🔹 Telegram: @Celestium_Network 🔹 Website: Celestium.network 🔹 Faucet: Get Test CLT

Last updated