Verify Smart Contracts on RBAScan
Verifying a smart contract publishes its source code on RBAScan, allowing users and developers to inspect the contract and interact with its verified functions through the explorer.
You can verify contracts deployed on Roburna Testnet using RBAScan directly, Hardhat, or Foundry.
#Before You Begin
Make sure you have:
- A deployed smart contract on Roburna Testnet.
- The contract address.
- The compiler version used to compile the contract.
- The contract's source code and deployment settings.
If you have not deployed a contract yet, see Deploy Smart Contracts on Roburna.
#Verify Through RBAScan
This is the simplest method when you want to verify a contract directly through the explorer.
#1. Open RBAScan Testnet
Visit RBAScan Testnet.
#2. Find Your Contract
Search for your deployed contract address. Open the contract page and select the Contract tab.
#3. Select Verify & Publish
Click Verify & Publish. Select the appropriate verification settings, including:
- Compiler type
- Compiler version
- Open-source license
- Optimization settings, if used
These settings must match the settings used when the contract was compiled and deployed.
#4. Submit the Contract
Provide the required source code and contract information, then select Verify & Publish.
If the submitted information matches the deployed bytecode, RBAScan will verify the contract.
Once verification is complete, the contract source code will be publicly available on the contract page.