Skip to content

Commit 017ae81

Browse files
author
isabelle
committed
update hardhat instructions
1 parent c7c8d36 commit 017ae81

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/content/docs/en/developers/verifying-smart-contracts.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,15 @@ Most smart contract tooling has plugins for verifying your contracts easily on E
2929
| Scrollscan | https://api.scrollscan.com/api | https://api-sepolia.scrollscan.com/api |
3030
| Blockscout | https://blockscout.scroll.io/api | https://sepolia-blockscout.scroll.io/api |
3131

32+
<Aside type="tip" title="Using the Scrollscan API">
33+
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.
34+
</Aside>
35+
3236
### Hardhat
3337

34-
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.
38+
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.
3539

40+
For example, if you are using Scroll Sepolia on Blockscout, your config will look like this:
3641
```javascript
3742
...
3843

@@ -95,8 +100,6 @@ Refer to the [Foundry documentation](https://book.getfoundry.sh/reference/forge/
95100

96101
#### Scrollscan
97102

98-
You will need to [register an account](https://scrollscan.com/register) to 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.
99-
100103
```bash
101104
forge verify-contract <contract address> <contract name> \
102105
--verifier-url https://api-sepolia.scrollscan.com/api \

0 commit comments

Comments
 (0)