Verify your deployed contract using flattened source code, JSON input, Sourcify and more. Verifying your deployed contract ensures transparency and trust by making the source code publicly available and verifiable.Documentation Index
Fetch the complete documentation index at: https://seilabs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Benefits of Verification
- Transparency: Publicly available source code.
- Trust: Community can verify the contract’s functionality.
- Security: Greater confidence in the contract’s integrity.
Sourcify
Sourcify provides decentralized, open-source contract verification. Sei has full Sourcify support on both mainnet (chain ID 1329) and testnet (chain ID 1328). Sourcify performs byte-by-byte verification by recompiling your source code with the exact same compiler settings and comparing the output against the on-chain bytecode. No API key is required.Verify with Foundry
After deploying your contract with Foundry, verify it on Sourcify:forge create:
If you need to pass constructor arguments, append them after the contract path. For example:
forge create src/Token.sol:Token --constructor-args "MyToken" "MTK" 18Verify with Hardhat
Thehardhat-verify plugin supports Sourcify out of the box with no additional configuration or API key.
1. Install dependencies
2. Configure hardhat.config.ts
Sourcify verification is enabled by default in
hardhat-verify. No verify config block is needed for Sourcify.3. Deploy
4. Verify with Sourcify
npx hardhat verify without a subtask will attempt verification on all enabled providers (Etherscan, Blockscout, and Sourcify) simultaneously.
Verify via Sourcify UI
You can also verify contracts directly through the Sourcify web interface:- Go to verify.sourcify.dev
- Select Sei (chain ID 1329) or Sei Testnet (chain ID 1328)
- Enter your contract address
- Upload your source files or standard JSON input
- Click Verify
Remix Contract Verification Plugin
Remix IDE offers an automated contract verification solution through its Contract Verification plugin, which integrates with both Sourcify and Etherscan verification services.Setup and Configuration
- Activate the Plugin: In Remix IDE, navigate to the Plugin Manager and activate the Contract Verification plugin.
-
Configure Network Settings:
- Search for and select Sei as your blockchain
- Choose your deployment environment:
- Testnet (1328) for development
- Mainnet (1329) for production
-
Enable Verification Services: Activate both verification methods:
- ✅ Sourcify
- ✅ Etherscan
-
Etherscan Configuration: Configure the following settings:
- API Key: Obtain from seiscan.io
- URL:
https://seiscan.io
Deploy and Verify
Once configured, deploy your contract through Remix as usual. The Contract Verification plugin will automatically verify your contract upon successful deployment, submitting to both Sourcify and Seiscan simultaneously. Verification status will be displayed in the plugin interface, and your verified contract will be publicly viewable on Seiscan explorer.Verify via 0xngmi Etherscan Verification (third‑party)
You can batch‑verify a contract that is already verified on another chain using the community tool Etherscan Verification by 0xngmi. This copies the verified source from a “source chain” and submits it to Seiscan, as long as the bytecode and compiler settings match. Steps:- Open Etherscan Verification by 0xngmi.
- In “Source Contract”, paste the address of the contract that is already verified and select its chain.
- In “Target Contracts”, add your Sei deployment address and select “Sei” as the target chain.
- Click “Verify Contracts” and wait for the result.
- Confirm the result on Seiscan by visiting the contract page and checking the Contract tab.
If verification fails with a bytecode mismatch, re‑check compiler version, optimization runs, constructor arguments, and linked library addresses; they must be identical to the deployment on Sei.