Verify contract source code

Source code verification enables deeper insights for contracts on purrsec. Verify contracts with Foundry, Hardhat, or upload files directly below.

Parsec uses the Sourcify SDK with the verifier URL: https://sourcify.parsec.finance/verify

Verify with Foundry

Foundry provides native support for contract verification with Sourcify. Use the Parsec verifier URL: https://sourcify.parsec.finance/verify. Learn more.

forge verify-contract 0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32 src/Counter.sol:Counter \

  --chain-id 998 \

  --verifier sourcify \

  --verifier-url https://sourcify.parsec.finance/verify

Verify with Hardhat

The Hardhat plugin @nomicfoundation/hardhat-verify has official Sourcify support. Use the Parsec apiUrl: https://sourcify.parsec.finance/verify. Learn more.

Upload a contract

Verify a contract by uploading the source files here.

Step 1. Enter the address of the contract you'd like to verify

Step 2. Enter the chain ID of the chain your contract is deployed on

Step 3. Upload a folder containing your contract source code (.sol) and a metadata file.

0 file(s) selected

Step 4. Submit your verification