> For the complete documentation index, see [llms.txt](https://docs.0xweb.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.0xweb.org/hardhat/installation.md).

# Installation

#### Automatically

The command ensures all manual steps

```bash
$ 0xweb init --hardhat
```

#### Manually

* Install [dequanto 📦](/package-manager/dequanto-dependency.md) library
* Install [hardhat](https://www.npmjs.com/package/hardhat)

  ```
  npm i hardhat
  ```
* Install [@0xweb/hardhat](https://www.npmjs.com/package/@0xweb/hardhat) plugin

  ```
  npm i @0xweb/hardhat
  ```
* `hardhat.config.js` should look like this:

  ```
  require("@0xweb/hardhat");

  module.exports = {
      solidity: {
          version: "0.8.2",
          settings: {
              optimizer: {
                  enabled: true,
                  runs: 200
              }
          }
      },
      networks: {
          hardhat: {
              chainId: 1337
          },
          localhost: {
              chainId: 1337
          },
          mainnet: {
              url: ``,
              accounts: [``]
          }
      },
      etherscan: {
          // One at https://etherscan.io/
          apiKey: ""
      }
  };


  ```
