Verify smart contracts
Verify Solidity contracts on ADI Mainnet and ADI Network AB Testnet.
Use the working Blockscout explorers to publish and verify contract source code. Blockscout is open, so verification does not require an API key.
Choose an explorer
Use the BLS explorer for ADI Mainnet. Use the testnet explorer for ADI Network AB Testnet. The primary mainnet explorer cannot verify contracts.
The BLS explorer runs Blockscout with the smart-contract-verifier and Sourcify backend.
Verify in the explorer
Open the working explorer for your network.
Paste the deployed contract address into the search field.
Open the Contract tab.
Select Verify & Publish.
Select the compiler version and license.
Upload your source using one of these formats:
A single Solidity file.
Multiple source files.
Standard JSON input.
Use the exact compiler version, optimizer settings, and constructor arguments from deployment.
Foundry
Configure the BLS explorer in foundry.toml. The empty key is intentional. Blockscout does not require an API key.
Deploy and verify on ADI Mainnet:
Or explicitly select Blockscout:
For ADI Network AB Testnet, use chain ID 99999 and its API endpoint:
Hardhat
Configure hardhat-verify with custom ADI network definitions. Empty API keys are correct for Blockscout.
Then run:
Verify on ADI Network AB Testnet:
The testnet network name is ADI Network AB Testnet. Its chain ID is 99999.
You can also use the blockscout-hardhat-verify plugin. It supports Blockscout verification directly.
Sourcify
Sourcify provides an additional verification backend for the BLS mainnet explorer. You can submit matching contract metadata and source files through Sourcify. The explorer can then display the verified result.
Network endpoints
ADI Mainnet
https://rpc.adifoundation.ai
https://explorer-bls.adifoundation.ai/api
ADI Network AB Testnet
https://rpc.ab.testnet.adifoundation.ai
https://explorer-api.ab.testnet.adifoundation.ai/api
Last updated
