Source code verification enables deeper insights for contracts on Purrsec (by Parsec). Verify contracts with Foundry, Hardhat, or upload files directly below. Parsec uses the Sourcify SDK.
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 999 \ --verifier sourcify \ --verifier-url https://sourcify.parsec.finance/verify
Troubleshooting: if you encounter errors try removing explorer configs, such as ETHERSCAN_API_URL and ETHERSCAN_API_KEY, from your .env and foundry.toml. Ensure you have specified the correct chain ID.
The Hardhat plugin @nomicfoundation/hardhat-verify has official Sourcify support. Use the Parsec apiUrl: https://sourcify.parsec.finance. Learn more.