Hardhat
Hardhat - Verifying Contracts
Learn how to verify smart contracts on Abstract using Hardhat.
Verifying Contracts
1
Get an Abscan API key
Follow the Abscan documentation to get an API key.
2
Update Hardhat configuration
Add the below etherscan
configuration object to your Hardhat configuration file.
Replace <your-abscan-api-key-here>
with your Abscan API key from the previous step.
hardhat.config.ts
3
Verify a contract
Run the following command to verify a contract:
Replace <contract-address>
with the address of the contract you want to verify.
Constructor Arguments
To verify a contract with constructor arguments, pass the constructor arguments to the verify
command after the contract address.
Was this page helpful?