Smart Contract Verification
Last updated
Was this helpful?
Last updated
Was this helpful?
A quick guide on how to verify your contracts on Harmony.
Right now, we support verification only for one single solidity file - therefore, before deployment and verification, you will need to flatten all solidity sources to one file.
To flatten your solidity files we recommended to use
Or you can use any other flattener lib
To more easy verification we recommend to deploy contract with Harmony Remix
You can verify your contract here
Important to use correct params (the same like on deploy):
Contract address
Contract name
Compiler version
Optimizer
Chain Type (mainnet or testnet)
Sources
Imported libs
Then click Submit button
If all parameters are correct - you should to see Success
message, or Error
if bytecodes don't equal
On Success case - you contract will verify and you will see all contract details on contract explorer page
Example for Harmony Remix:
To get ABI-encoded constructor arguments you can ue this service:
1 - click ABI to copy it
2 - paste ABI to form and click parse
3 - paste your constuctor arguments and click Copy
4 - paste encoded constructor arguments to verify form field