Contract Verification
Verify smart contracts inside a Fork
Verifying a contract means making its source code available in that Fork and the compiler settings you used. If you want to delete the source code, delete the associated Fork.
For contracts that have been verified, the simulated transactions can be debugged using the Debug Transaction feature of Phalcon Explorer.
The instructions on how to get the API Key, Fork ID, RPC_ID, Project ID, and FORK_RPC can be found in this document.
We use API_KEY, FORK_ID, RPC_ID, PROJECT_ID, and FORK_RPC
in the following to denote the concrete value.
Hardhat
Verifying a contract in Fork is similar to verifying it on Etherscan. Read this manual on Hardhat on contract verification on Etherscan.
You need to change the configuration to verify a contract on Phalcon Fo
Then, use the following command to verify the deployed contract.
If you have not deployed your contract, use the following command to deploy your contract first.
Copy
Foundry
In Foundry, you can use the verify-contract
for verification. Please refer to the document on Foundry.
the_contract_address: The contract address
the_contract_code_path: The path of the local contract code, e.g., src/MyToken.sol:MyToken.
The verification process is showing in the terminal.
Truffle
Please refer this document for how to verify the contract using Truffle.
Phalcon Fork provides Etherscan's compatible APIs. One convenient way is to add the Phalcon Fork into verify
section of a network.
Note that the previous configuration is just an example. Since our API is Etherscan compatible, please refer to the development framework document for more information on contract verification.
Verified Contracts
Detailed information on the verified contracts is shown in the Contracts
of the Phalcon Fork Details and inside Fork Scan.
Last updated