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

# Act 5: Enabling verification

> Enable automatic Hardhat contract verification for your Tenderly Virtual Environment staging environments using environment variable configuration.

In this act, you'll make hardhat verification configurable.
This is important so that you can create [staging environments from CLI](/guides/workshops/build-stage-deploy/act-4) on your local machine.

## Configure hardhat

<Steps>
  ### Configure environment variables

  * From `packages/tenderly/.env` copy the 3 values and append them to `packages/hardhat/.env`

  ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  cat packages/tenderly/.env >> packages/hardhat/.env
  ```

  ### Enable automatic verification

  To enable automatic verification of contracts in Hardhat, add the following config to `/packages/hardhat/.env`:

  ```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  TENDERLY_AUTOMATIC_VERIFICATIONS=true
  ```
</Steps>
