Objectives
By the end of this lesson you should be able to:- Verify a contract on the Base Sepolia testnet and interact with it in BaseScan.
Verify the Contract
Make sure you still have the address of the contract you deployed in the last article copied to the clipboard. You can interact with your deployed contract using Remix, the same as before, but it’s also possible to interact with it through BaseScan. Paste your address in the search field to find it. On this page, you can review the balance, information about, and all the transactions that have ever occurred with your contract. Click the Contract tab in the main panel. At the top is a message asking you to Verify and Publish your contract source code.
pragma
at the top of your source file. Our examples are currently using v0.8.17+commit.8df45f5f.
For Please select Open Source License Type pick the license that matches what you selected for your contract as the SPDX-License-Identifier
. Pick None if you followed the Solidity-recommended practice of using UNLICENSED
.
On the next page, copy and paste your source code in the window. Verify that you are not a robot, and click Verify and Publish. You should see a success message.

If you have imports, you’ll need to right-click on the name of the file and choose
Flatten
. Submit the newly generated filename_flattened.sol
for verification.