cjmling / findings

Notes on stuff i finds worth keeping for quick reference later on.
2 stars 0 forks source link

Etherium token verify contract hardhat #330

Open cjmling opened 2 years ago

cjmling commented 2 years ago

If you aren't able to read or write new contract. We need to verify it first. And if you use hardhat to deploy, you can use hardhat to verify.

Steps

  1. Get etherscan api key. Signin and get api key from etherscan dashboard.
  2. Install and include by following this doc
  3. Then run this command npx hardhat verify "<token_address>" --network <network_name>

Replace token_address and the network_name

token_address is wrapped within quote , network_name doesn't need to be within quote