You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After deploying your smart contracts, it's important to verify your code on [our block explorer](https://scrollscan.com/)or the [Sepolia block explorer](https://sepolia-blockscout.scroll.io).
16
+
After deploying your smart contracts, it's important to verify your code on a block explorer. This can be done in an automated way using your developer tooling or the Web UI.
17
17
18
-
This can be done in an automated way using your developer tooling or using Blockscout's Web UI.
18
+
## Using Developer Tools
19
19
20
-
<Asidetype="tip"title="Blockscout vs Etherscan">
21
-
The below instructions for verifying on our Sepolia Blockscout instance will need to be altered to work with Etherscan
22
-
deployments. As additional services come online for mainnet, we'll update these instructions.
23
-
</Aside>
20
+
Most smart contract tooling has plugins for verifying your contracts easily on Etherscan. Blockscout supports Etherscan's contract verification APIs, so it's straightforward to use these tools using the APIs of either of these block explorers.
Most smart contract tooling has plugins for verifying your contracts easily on Etherscan. Blockscout supports Etherscan's contract verification APIs, and it's straightforward to use these tools with the Scroll Sepolia Testnet.
27
+
<Asidetype="tip"title="Using the Scrollscan API">
28
+
When using Scrollscan, you will need to [register an account](https://scrollscan.com/register) and create an API key. The same key can be used for both Scroll Sepolia and mainnet. After creating your API key, please wait a few minutes before it comes into effect.
29
+
</Aside>
28
30
29
31
### Hardhat
30
32
31
-
First, modify `hardhat.config.ts` to point to Scroll's RPC and `sepolia-blockscout.scroll.io/api`. A dummy `apiKey` value is required, but anything works for its value.
33
+
Modify `hardhat.config.ts` to point to Scroll's RPC and block explorer API. For Blockscout, a dummy `apiKey` value is required, but anything works for its value. For Scrollscan, use your own API key.
32
34
35
+
For example, if you are using Scroll Sepolia on Blockscout, your config will look like this:
When using Foundry, the `verify-contract` command helps automate the process of verifying contracts. If your contract has constructor arguments, you can specify these in ABI-encoded form with the `--constructor-args` option. For example, if your constructor takes two `uint256` variables:
0 commit comments