Verify With Foundry
Foundry can verify contracts using RBAScan's Blockscout verification endpoint.
#1. Get Your Contract Address
After deploying your contract with Foundry, copy the deployed contract address.
#2. Run the Verification Command
Run:
forge verify-contract
--rpc-url https://preseed-testnet-1.roburna.com
--verifier blockscout
--verifier-url 'https://testapi.rbascan.com:443/api/'
YOUR_CONTRACT_ADDRESS
HelloRoburna
Replace:
YOUR_CONTRACT_ADDRESSwith your deployed contract address.HelloRoburnawith the name of your contract. If your contract is located in a subdirectory, specify the full contract path: src/HelloRoburna.sol:HelloRoburna
#3. Check the Result
After successful verification, open your contract on RBAScan Testnet. The verified source code should be displayed on the contract page.