Alternatively, you can flatten your contract (you will still need to convert your GitHub imports to npm imports), encode your constructor parameters using: https://abi.hashex.org/
I have followed your instructions and am now on my last step.
However, I have encounter an error while trying to run “npx hardhat verify --network (…)”.
My error was: “Error HH303: Unrecognized task verify”.
Forgot to ask!
In the field where it says “accounts: {mnemonic: mnemonic}”, does mnemonic mean my wallet address used to deploy the contract? I am trying to verify on Rospten.
The mnemonic is stored in a secret, such as a .env file or secrets.json to an account on that network. As you aren't doing transactions, this doesn't need to have any funds.
I have deleted the screenshot. It included your Etherscan API key. I recommend deleting this API key and creating a new one. You should store secrets such as API keys in a secure way and ensure that you don't commit them to version control. I tend to use either a secrets.json file or a .env file.