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 verificationsource_api_key
- The api key for the source block-explorer’s apisource_url
- The url of the source block-explorer’s apitarget_api_key
- The api key for the target block-explorer’s apitarget_url
- The url of the target block-explorer’s apiprogress_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,
);