Class Contract

Description

Creates an initialized contract class abstraction

Param

Initialized Sotez client

Param

Contract address

Example

const contract = new Contract(sotez, 'KT1MKm4ynxPSzRjw26jPSJbaMFTqTc4dVPdK');

Hierarchy

  • Contract

Constructors

  • Parameters

    • client: any
    • address: string

    Returns Contract

Properties

address: string
client: any
entrypoints: any
loaded: Promise<boolean>
methods: { [key: string]: ((...args: any[]) => ContractMethod) } = {}

Type declaration

parameterSchema: ParameterSchema
schema: Schema

Methods

  • Parameters

    • address: string

    Returns Promise<boolean>

  • Parameters

    Returns void

  • Description

    Return the contract balance

    Returns

    The contract balance

    Returns Promise<string>

  • Description

    Return a friendly representation of the smart contract storage

    Returns

    The contract storage

    Returns Promise<any>

Generated using TypeDoc