✅Smart Contracts Verification
Last updated
Last updated
You can verify your smart contract using the Explorer after its deployment. To verify your smart contract, please visit: https://explorer.whitechain.io/
Below, you will find guides and recommendations on various methods for verifying smart contracts:
To verify a smart contract using a Solidity file, you need to paste the entire content of the deployed contract into the text input. This method is suitable for cases where the contract consists solely of one file and has no external dependencies, such as imported libraries.
Please Note: the name of your file must exactly match the name of the file you used when deploying the contract. If the filename differs from the one used for deploying the contract on the network, the verification will not be successful due to differences in bytecode.
Please Note: the file name can include a relative path (for example, if your contract 'main.sol' was in the 'src' folder, you should specify 'src/main.sol' in the filename).
To verify a smart contract using multiple Solidity files, you need to upload all the contract files you deployed or used during compilation.
Please Note: when verifying using multiple files, you must upload all the files and dependencies used in deploying your contract, preserving and including relative file paths for a complete bytecode match.
If your smart contract consists of multiple contract files, we recommend using the 'Standard JSON Input' verification method described below. This simplest method allows you to verify your smart contract quickly and easily.
To verify a smart contract using a JSON structure, you can use the Remix IDE tool.
A build information file is created when compiling a contract file in the Remix IDE interface. This file includes all the necessary information for verifying the contract in a JSON structure.
You can find this file in the file explorer at the specified path: contracts/artifacts/build-info/ [target file.json]
In this file, you must copy the entire 'input' object, including the curly braces, but excluding the word 'input' and commas.
You should paste the copied object into the text field labeled 'Standard JSON Input':
If you used constructor arguments during the contract deployment, make sure they are specified in the 'Constructor Arguments' field; otherwise, the verification will not be successful.