This documentation provides complete guidance for verifying your smart contracts using our web interface, API endpoints, Hardhat, and Foundry.

0. How It Works

Somnia Explorer operates a comprehensive API server that includes all stable Solidity compiler versions (excluding nightly builds). Our verification system supports multiple methods to accommodate different development workflows:

Verification Process

  1. Input Processing: We receive your contract information through web interface or API
  2. Compilation: Our system compiles your source code using the specified compiler version
  3. Response Generation: Verification results are returned with contract details

💡 Recommendation: We strongly recommend using Standard JSON Input as it provides the most comprehensive information about your code, including optimizer settings and complete compilation metadata.

1. Explorer UI

The Somnia Explorer web interface provides an intuitive way to verify your smart contracts. The verification process is designed to be user-friendly while maintaining technical accuracy.