Hardhat

Hardhat is a development environment used for compiling, deploying, testing, and debugging smart contracts.

Check out Hardhat for installation detailsarrow-up-right and an overviewarrow-up-right.

Hardhat Configuration for Lycanarrow-up-right

Update the configuration file with the changes shown below for Lycan Chain, providing examples for both JavaScript and TypeScript.

require("@nomiclabs/hardhat-waffle");
const fs = require("fs");
const mnemonic = fs.readFileSync(".secret").toString().trim();
let accounts = { mnemonic: mnemonic };

module.exports = {
  defaultNetwork: "lycan",
  solidity: "0.8.4",
  networks: {
    lycan: {
      url: "https://rpc.lycanchain.com",
      accounts: accounts,
    },
  },
};

Compile your contractarrow-up-right

Deploy your contractarrow-up-right

View your deployed contract on any of the explorersarrow-up-right.

Last updated