diff --git a/src/content/docs/en/developers/verifying-smart-contracts.mdx b/src/content/docs/en/developers/verifying-smart-contracts.mdx index 400d78f22..be119ed8c 100644 --- a/src/content/docs/en/developers/verifying-smart-contracts.mdx +++ b/src/content/docs/en/developers/verifying-smart-contracts.mdx @@ -5,7 +5,7 @@ title: "Verifying Smart Contracts" lang: "en" permalink: "developers/verifying-smart-contracts" whatsnext: { "Scroll Contracts": "/developers/scroll-contracts" } -excerpt: "Easily verify your smart contracts with Scroll-supported developer tooling or the Blockscout Web API" +excerpt: "Easily verify your smart contracts with Scroll-supported developer tooling" --- import Aside from "../../../../components/Aside.astro" @@ -13,23 +13,26 @@ import ClickToZoom from "../../../../components/ClickToZoom.astro" import verify1 from "./_images/verify1.png" import CodeSample from "../../../../components/CodeSample/CodeSample.astro" -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). +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. -This can be done in an automated way using your developer tooling or using Blockscout's Web UI. +## Using Developer Tools - +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. -## Using Developer Tools +| Network | Scroll | Scroll Sepolia | +| ---------- | -------------------------------- | ---------------------------------------- | +| Scrollscan | https://api.scrollscan.com/api | https://api-sepolia.scrollscan.com/api | +| Blockscout | https://blockscout.scroll.io/api | https://sepolia-blockscout.scroll.io/api | -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. + ### Hardhat -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. +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. +For example, if you are using Scroll Sepolia on Blockscout, your config will look like this: ```javascript ... @@ -82,18 +85,46 @@ npx hardhat verify --network scrollSepolia 0xD9880690bd717189cC3Fbe7B9020F27fae7 ### Foundry - \ No newline at end of file