Deploy with Hardhat

Hardhat is a smart contract development environment that comes with tools that can be used to compile, debug, and deploy Solidity smart contracts and dApps on Ethereum and other EVM-compatible chains like InitVerse Network.

require("@nomicfoundation/hardhat-toolbox");

module.exports = {
    solidity: "0.8.17",
    networks: {
        iniTest: {
            url: "https://rpc-testnet.iniscan.com",
            accounts: ["YOUR PRIVATE KEY"],
        },
    },
};

Replace YOUR PRIVATE KEY with your account private key.

Don't share your private key with anyone, otherwise, you may lose all of your cryptos.

  • With your contracts ready in the "Contracts" directory within your Hardhat project, you can run the following command to compile them.

npx hardhat compile
Compiling...
Compiled 1 contract successfully
  • Use the following command to deploy your contracts to a chosen network.

npx hardhat run --network iniTest scripts/deploy.js
Contract deployed to address: 0x0000000000000000000000000000000000000000

Last updated