How do I deploy a smart contract on The Root Network using hardhat?

The code below is the minimum hardhat configuration to deploy smart contracts on The Root Network.

import { getPublicProviderUrl } from "@therootnetwork/evm";

const config: HardhatUserConfig = {
  solidity: {
    version: "0.8.17",
  },
  networks: {
    porcini: {
      url: getPublicProviderUrl("porcini"),
      chainId: 7672,
      accounts: [...],
    },
    root: {
      url: getPublicProviderUrl("root"),
      chainId: 7668,
      accounts: [...],
    },
  },
};

Last updated

© 2023 -> ♾️