pub async fn copy_etherscan_verification_for_contract(
contract_address: String,
source_api_key: String,
source_url: String,
target_api_key: String,
target_url: String,
) -> Result<VerificationResult>
Expand description
Copy contract verification of a single contract from one block-explorer to another
§Arguments
contract_address
- The contract address for which to copy the source code verification 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 api
§Examples
let results = contract_verification_migrator::copy_etherscan_verification_for_contract(
"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(),
);