How to verify your smart contracts on Pools Chain
Hardhat: Verify Your Contracts
After you deploy your PRC20 Contract successfully, the next step is to verify the source code for your Solidity contracts. This plugin adds the Pool network to the verify task provided by Hardhat-Etherscan
Step 1. Install the package
We need the Hardhat plugin for integration with Poolcan's contract verification service. This plugin needs to be used in conjunction with the Hardhat-Etherscan plugin (v3.1.0 or above).
And make sure you also have the following dependencies:
Step 2. Import the plugins
Under Hardhat, add the following statement to your hardhat.config.ts
:
Step 3. Check the supported network list:
Check the list of supported networks:
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 DEPLOYED_CONTRACT_ADDRESS
with your deployed contract address, and the constructor arguments that were used to deploy it (if any):
Verify on Pool (Mainnet):
Verify on Pool Testnet
Example:
You should now be able to see your contact is verified on Poolscan or Testnet Poolscan and start to read and write your smart contracts.
Last updated