Function copy_etherscan_verification

Source
pub async fn copy_etherscan_verification(
    contract_addresses: Vec<String>,
    source_api_key: String,
    source_url: String,
    target_api_key: String,
    target_url: String,
    progress_bar: bool,
) -> Vec<Result<VerificationResult>> 
Expand description

Copy contract verification of multiple contracts from one block-explorer to another

§Arguments

  • contract_addresses - Vector of contract addresses for which to copy the contract verification
  • source_api_key - The api key for the source block-explorer’s api
  • source_url - The url of the source block-explorer’s api
  • target_api_key - The api key for the target block-explorer’s api
  • target_url - The url of the target block-explorer’s api
  • progress_bar - Boolean indicating wether or not to display progress bars for the individual requests

§Examples

   let results = contract_verification_migrator::copy_etherscan_verification(
       vec!["0xE592427A0AEce92De3Edee1F18E0157C05861564".to_string()],
       "<YOUR_ETHERSCAN_API_KEY>".to_string(),
       "https://api.etherscan.io/api".to_string(),
       "<YOUR_BLOCKSCOUT_API_KEY>".to_string(),
       "https://eth.blockscout.com/api".to_string(),
       true,
    );