etherscan-api
    Preparing search index...

    Interface VerifyParams

    Common fields shared by the contract-verification endpoints.

    The field set is closed so a misspelt name (optimisationUsed, say) is a compile error instead of a field Etherscan silently ignores. Every field is still forwarded at runtime, so for a field not listed here, widen the object with a type assertion.

    interface VerifyParams {
        codeformat?: string;
        compilermode?: string;
        compilerversion?: string;
        constructorArguements?: string;
        contractaddress: string;
        contractname: string;
        evmversion?: string;
        licenseType?: string | number;
        optimizationUsed?: string | 0 | 1;
        runs?: string | number;
        sourceCode: string;
        zksolcVersion?: string;
        [library: `libraryname${number}`]: string | undefined;
        [library: `libraryaddress${number}`]: string | undefined;
    }

    Hierarchy (View Summary)

    Indexable

    • [library: `libraryname${number}`]: string | undefined

      Linked library names, libraryname1 … libraryname10.

    • [library: `libraryaddress${number}`]: string | undefined

      Linked library addresses, libraryaddress1 … libraryaddress10.

    Index

    Properties

    codeformat?: string

    e.g. 'solidity-single-file', 'solidity-standard-json-input', 'vyper-json' or 'stylus'.

    compilermode?: string

    zkSync compiler mode (verifyzksyncsourcecode).

    compilerversion?: string

    Compiler version, e.g. 'v0.8.24+commit.e11b9ed9'.

    constructorArguements?: string

    ABI-encoded constructor arguments (without the leading 0x). Etherscan's spelling.

    contractaddress: string

    Address the contract is deployed at.

    contractname: string

    Contract name (or path:Name for standard-json-input).

    evmversion?: string
    licenseType?: string | number
    optimizationUsed?: string | 0 | 1
    runs?: string | number
    sourceCode: string

    The source, or a standard-json-input string.

    zksolcVersion?: string

    zksolc version (verifyzksyncsourcecode).