etherscan-api
    Preparing search index...

    Interface VerifySourceCodeParams

    Parameters for contract.verifysourcecode (Solidity).

    interface VerifySourceCodeParams {
        codeformat?: string;
        compilerversion: string;
        constructorArguements?: string;
        contractaddress: string;
        contractname: string;
        evmversion?: string;
        licenseType?: string | number;
        optimizationUsed?: string | 0 | 1;
        runs?: string | number;
        sourceCode: string;
        [key: string]: string | number | undefined;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: string | number | undefined

      Any further endpoint-specific fields are passed through.

    Index

    Properties

    codeformat?: string

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

    compilerversion: string

    Full compiler version, e.g. 'v0.8.24+commit.e11b9ed9'.

    constructorArguements?: string

    ABI-encoded constructor arguments (without the leading 0x).

    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.