Skip to content

fix(docs): replace --etherscan-api-key with Blockscout verifier flags in Foundry guide#614

Open
schoolkamsergj wants to merge 1 commit into
inkonchain:mainfrom
schoolkamsergj:fix/blockscout-verification-guide
Open

fix(docs): replace --etherscan-api-key with Blockscout verifier flags in Foundry guide#614
schoolkamsergj wants to merge 1 commit into
inkonchain:mainfrom
schoolkamsergj:fix/blockscout-verification-guide

Conversation

@schoolkamsergj
Copy link
Copy Markdown

Summary

Fixes the incorrect contract verification command in the Foundry deployment guide raised in #609.

The foundry.mdx guide used --etherscan-api-key flag when targeting Ink Sepolia network, which uses Blockscout — not Etherscan. This caused forge verify-contract to fail with an "unsupported chain" error.

Change

Replaced the incorrect Etherscan flag with the proper Blockscout verifier flags.

Before:

forge verify-contract <DEPLOYED_CONTRACT_ADDRESS> src/InkContract.sol:InkContract \
    --chain-id 763373 \
    --etherscan-api-key $BLOCKSCOUT_API_KEY

After:

forge verify-contract <DEPLOYED_CONTRACT_ADDRESS> src/InkContract.sol:InkContract \
    --chain-id 763373 \
    --verifier blockscout \
    --verifier-url https://explorer-sepolia.inkonchain.com/api \
    --verifier-api-key $BLOCKSCOUT_API_KEY

Also updated the section heading from "on Etherscan" to "on Blockscout" for consistency.

Why

  • Etherscan and Blockscout use different APIs and are not interchangeable
  • Ink Sepolia is verified through Blockscout at https://explorer-sepolia.inkonchain.com/api
  • Without this fix, forge verify-contract fails for all Ink Sepolia deployments

Closes #609

@schoolkamsergj schoolkamsergj requested a review from a team as a code owner May 24, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant