DeeLance Network
Visit Our website WhitePaper
  • Introducing DeeLance Blockchain
  • BASIC KNOWLEDGE
    • What is Blockchain
  • welcome to DeeLance
    • Overview
    • About DeeLance
    • Ecosystem
    • ERC20 DLANCE Token
    • Community
  • GETTING STARTED
    • Add DeeLance to Metamask
    • Get Testnet Funds
    • Core Concepts
      • Genesis File
      • Consensus
      • Proof of Stake (Pos)
      • Understanding pBFT
      • Research
      • Scalability
    • Developer Guide
      • RPC
      • DeeLance Testnet
      • Deelance Explorers
      • Deploy Smart Contract
        • Using Remix IDE
        • Using Truffle
        • Using Hardhat
  • Dive Into DeeLance Move!
  • Staking
    • Overview
    • User Guide
  • Validator
    • Overview
    • Run validator
    • Create Validator
    • Secure Validator
  • Node Operators
    • Node Best Practices
    • Node Types
      • Bootnodes
      • Full Node
      • Archive Nodes
Powered by GitBook
On this page
  • What is Remix IDE ?
  • Prerequisites
  • Creating and Deploying DRC20 Token on Remix IDE
  1. GETTING STARTED
  2. Developer Guide
  3. Deploy Smart Contract

Using Remix IDE

Setting up and launching a DRC20 Token Smart Contract on the Deelance Testnet using Remix IDE.

PreviousDeploy Smart ContractNextUsing Truffle

Last updated 1 year ago

What is Remix IDE ?

Remix IDE is an open-source web and desktop application that aids in smart contract development, written in Solidity language for the Ethereum blockchain. It provides a range of tools that help developers write, test, debug, and deploy smart contracts with ease. Some notable features of Remix IDE include.

Prerequisites

  1. Add Deelance Testnet in your MetaMask, to add refer to our guide Add DeeLance to Metamask

  2. Get Deelance Testnet coins from the .

Creating and Deploying DRC20 Token on Remix IDE

  • Visit

you'll be greeted with the following screen.

  • Click on the icon mentioned below to generate a new file called PepeDeelance.sol.

An empty file will appear as shown below.

  • Copy the following code and insert it into PepeDeelance.sol.

// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;

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

contract PepeDeelance is ERC20, Ownable {
    constructor() ERC20("PepeDeelance", "PEPEDLANCE") {
        _mint(msg.sender, 1000000000 * 10 ** decimals());
    }

    function mint(address to, uint256 amount) public onlyOwner {
        _mint(to, amount);
    }
}
  • Now, click on the specified icon to compile your contract.

  • Next, press the "Compile" button to compile your contract, ensuring you select the checkbox highlighted within the blue circle.

  • To deploy your contract, click on the indicated button below.

  • Now, select the "Remix VM...." dropdown, and then choose the "Injected Provider" highlighted in orange.

After making that selection, MetaMask will prompt you to unlock your wallet. If you're already logged into MetaMask, you'll see a display similar to the one below.

Ensure that you're connected to the DLANCE TESTNET, which carries a chain ID of 455214.

  • To finalize the deployment of your DRC20 Smart Contract on the Deelance Testnet, press the "Deploy" button highlighted in orange, as shown below.

If you haven't added the Deelance Testnet in your MetaMask, refer to our guide Add DeeLance to Metamask

After clicking the "Deploy" button, MetaMask will pop up prompting you to approve the transaction. Once you confirm, your contract will deploy within a few seconds, and you'll be able to view your deployed contract here.

Well done! You've successfully created and launched the DRC20 token on the Deelance Testnet.

Ensure you have enough Deelance Testnet Tokens to cover the gas fees for the transaction. If you need Testnet Deelance tokens, visit the .

Deelance Faucet
Deelance Faucet
https://remix.ethereum.org/