> ## Documentation Index
> Fetch the complete documentation index at: https://docs.therootnetwork.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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: [...],
    },
  },
};
```
