Skip to content

Contract Verification

The verification module provides tools for verifying smart contracts on block explorers.

Available Functions

  • verify - Verify a contract on a block explorer
  • get_verifier - Get the current verifier instance
  • set_verifier - Set or temporarily change the verifier

Supported Verifiers

  • Blockscout - Default verifier for Blockscout-based explorers

Quick Example

import boa

# Deploy a contract
contract = boa.loads_partial("@external\ndef get_value() -> uint256: return 42").deploy()

# Verify it on the block explorer
result = boa.verify(contract)