Function send_verification_request

Source
pub async fn send_verification_request(
    hash_str: &str,
    base_url: &str,
    code_archive: String,
    verbosity: Verbosity,
) -> Result<VerificationDetails, Error>
Expand description

Verifies the smart contract code against the one deployed at transaction hash.

Sends a verification request to the specified verification URL base path, including the transaction hash, public key, and code archive.

§Arguments

  • hash_str - The hash of the deploy or transaction that installed the contract.
  • base_url - The base path of the verification URL.
  • code_archive - Base64-encoded tar-gzipped archive of the source code.
  • verbosity - The verbosity level of the verification process.

§Returns

The verification details of the contract.