Contract source code and metadata information

Source

interface Source {
    SourceCode: string;
    ABI: string;
    ContractName: string;
    CompilerVersion: string;
    OptimizationUsed: string;
    Runs: string;
    ConstructorArguments: string;
    EVMVersion: string;
    Library: string;
    LicenseType: string;
    Proxy: string;
    Implementation: string;
    SwarmSource: string;
}

Properties

SourceCode: string

Contract source code

ABI: string

Contract ABI in JSON format

ContractName: string

Name of the contract

CompilerVersion: string

Solidity compiler version used

OptimizationUsed: string

Whether optimization was enabled (1 for yes, 0 for no)

Runs: string

Number of optimization runs if optimization was enabled

ConstructorArguments: string

Constructor arguments used in deployment

EVMVersion: string

EVM version used for compilation

Library: string

Library addresses used by the contract

LicenseType: string

License type of the contract

Proxy: string

Whether the contract is a proxy (1 for yes, 0 for no)

Implementation: string

Implementation contract address if this is a proxy

SwarmSource: string

IPFS/Swarm source hash