Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
API Endpoints
Contract Verification

Verify with Foundry

You must update to the nightly build of Foundry to use this at the moment, viafoundryup --install nightly
Foundry is a tool that helps take the heat off smart contract development steps, including compiling, deploying and finally submitting your contract for verification.

Deploy and Verify

forge create --broadcast --rpc-url https://rpc.sepolia.ethpandaops.io --private-key YourPrivateKey src/ContractFile.sol:ContractName --verify --verifier etherscan --etherscan-api-key YourApiKeyToken

Verify an Existing Contract

forge verify-contract --watch --chain sepolia 0x324eca20b358b18e48f2611f7452560ce3b3c1bb src/ContractFile.sol:ContractName --verifier etherscan --etherscan-api-key YourApiKeyToken

Migrating from V1

API keys from any other explorer (such as BscScan/Basescan/Arbiscan) have been deprecated
The easiest way to migrate is to simply pass in yourEtherscan API key via--etherscan-api-keyFor deployment scripts, infoundry.toml you can shorten your settings to this, without needing a different key for each chain.
etherscan_api_key ="VZFDUWB3YGQ1YCDKTCU1D6DDSS6EWI62KV"[etherscan]mainnet   = {key ="${ETHERSCAN_API_KEY}" }
This open source integration was shipped by@iainnashand the Foundry team
⌘I

[8]ページ先頭

©2009-2025 Movatter.jp