Skip to Content
DevelopersGuidesContract Deployment Tutorial

The DogeOS Chikyū Testnet allows anyone to deploy a smart contract on DogeOS. In this tutorial, you will learn how to deploy a contract on DogeOS Chikyū Testnet using common tools for developing on Ethereum. This demo repo  illustrates contract deployment with Hardhat  and Foundry .

Deploy contracts with Hardhat

  1. If you haven’t already, install nodejs .

  2. Clone the repo and install dependencies:

    git clone https://github.com/DogeOS69/contract-deployment-guide.git cd dogeos69/contract-deployment-guide npm install
  3. Set you private key by using npx hardhat keystore set DOGEOS_CHIKYU_PRIVATE_KEY

  4. Deploy the contract with npx hardhat ignition deploy ignition/modules/Counter.ts --network dogeos_chikyu

Deploy contracts with Foundry

  1. Clone the repo:

    git clone https://github.com/DogeOS69/contract-deployment-guide.git cd dogeos69/contract-deployment-guide
  2. Install Foundry:

    curl -L https://foundry.paradigm.xyz | bash foundryup
  3. Deploy your contract with Foundry:

    forge create contracts/Counter.sol:Counter --rpc-url https://rpc.testnet.dogeos.com --interactive

Questions and Feedback

Thank you for participating in and developing on the DogeOS Chikyū Testnet! If you encounter any issues, join our Discord  and ask us in the #devs channel.