etherscan.validation

Documentation for eth_defi.etherscan.validation Python module.

Etherscan configuration validation.

Functions

check_etherscan_api_key(web3, api_key)

Check if Etherscan API key should work.

Exceptions

EtherscanConfigurationError

Custom exception for Etherscan configuration errors.

exception EtherscanConfigurationError

Bases: Exception

Custom exception for Etherscan configuration errors.

__init__(*args, **kwargs)
__new__(**kwargs)
add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

check_etherscan_api_key(web3, api_key)

Check if Etherscan API key should work.

  • Check using Etherscan v2 multichain support

Raises

EtherscanConfigurationError – if the API key is not vali or chain mismatch.

Parameters
  • web3 (web3.main.Web3) –

  • api_key (str) –