> For the complete documentation index, see [llms.txt](https://stargram.gitbook.io/stargram-chain-whitepaper-v1.2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stargram.gitbook.io/stargram-chain-whitepaper-v1.2/technical-architecture/4.15.-smart-contract-verification/4.15.2-how-to-verify-your-smart-contracts-on-stargram.md).

# 4.15.2 How to verify your smart contracts on Stargram

#### Chain

After you deploy your PRC20 Contract successfully, the next is to verify the source code for your Solidity contracts. This plugin adds the Stargram network to the verify task provided by Hardhat-Etherscan

<br>

Step 1. Install the package

We need the Hardhat plugin for integration with Stargram scan's contract verification service. This plugin needs to be used in conjunction with the Hardhat-Etherscan plugin (v3.1.0 or above).

<br>

<mark style="background-color:yellow;"># Install hardhat-etherscan plugin</mark>

<mark style="background-color:yellow;">npm install --save-dev @nomiclabs/hardhat-etherscan@^3.1.0</mark>

<br>

And make sure you also have the following dependencies:

<mark style="background-color:yellow;">npm install ethers dotenv @openzeppelin/contracts</mark>

<mark style="background-color:yellow;">npm install --save-dev solidity-coverage</mark>

<mark style="background-color:yellow;">npm install --save-dev hardhat-gas-reporter</mark>

Step 2. Import the plugins

Under Hardhat, add the following statement to your <mark style="background-color:yellow;">hardhat.config.ts:</mark>

<mark style="background-color:yellow;">...</mark>

<mark style="background-color:yellow;">import "@nomiclabs/hardhat";</mark>

<mark style="background-color:yellow;">import "@nomiclabs/hardhat-etherscan";</mark>

<mark style="background-color:yellow;">...</mark>

<mark style="background-color:yellow;">};</mark>

Step 3. Check the supported network list:

Check the list of supported networks:

<mark style="background-color:yellow;">npx hardhat verify --list-networks</mark>

Step 4. Verify the Smart Contract

Obtain your deployed contract address when you deployed the contract (Step 8 in the previous section).

In your hardhat project, run the verify task as shown below. Replace <mark style="background-color:yellow;">DEPLOYED\_CONTRACT\_ADDRESS</mark> with your deployed contract address, and the constructor arguments that were used to deploy it (if any):

**Verify on Stargram (Mainnet):**

<mark style="background-color:yellow;">npx hardhat verify --network stargram DEPLOYED\_CONTRACT\_ADDRESS "Constructor argument 1""Constructor argument 2"</mark>

**Verify on Stargram Testnet**

<mark style="background-color:yellow;">npx hardhat verify --network stargramTestnet DEPLOYED\_CONTRACT\_ADDRESS "Constructor argument 1""Constructor argument 2"</mark>

Example:

<mark style="background-color:yellow;">npx hardhat verify --network stargramTestnet "0x00e9fd0eaea8325dc31a64e23d91607fdd60d2d1" "My token name" "My token symbol"</mark>

​You should now be able to see your contact is verified on[ Stargramscan](https://scan.poolsmobility.com/) or[ Testnet Stargramscan](https://scan-testnet.poolsmobility.com/) and start to read and write your smart contracts.
