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).
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.