scaffold-eth-challenges icon indicating copy to clipboard operation
scaffold-eth-challenges copied to clipboard

Challenge 0: Invalid Etherscan API Key

Open elijahsullivan opened this issue 1 year ago • 0 comments

Description

Branch: challenge-0-simple-nft

Checkpoint 5: 📜 Contract Verification

When verifying a contract with a newly created API key from etherscan users might encounter the following error when running yarn verify since it can take roughly 5 minutes for the API key to become active.

contract YourCollectible failed to submit : "NOTOK" : "Invalid API Key" [object Object]

Steps to Reproduce

Note: The speed with which you complete these steps will impact the outcome.

  1. Create a new API key on etherscan
  2. Add the API key to the yarn verify script in packages/hardhat/package.json
  3. Run yarn verify (with the --network of your choice)
  4. The console logs an "Invalid API Key" error

Resolution

Perhaps a small note could be added to the Contract Verification section explaining that it might take a few minutes for the Etherscan API key to become active.

elijahsullivan avatar Aug 24 '22 02:08 elijahsullivan