Contract: interface to the API of a particular contract instance. Has an address on a specific chain, usually also an agent. Subclass this to add the contract's methods.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

connection?: Connection
instance?: {
    address?: string;
}

Type declaration

  • Optional address?: string
log: Console

Methods

  • Execute a transaction on the specified instance as the specified Connection.

    Parameters

    • message: Message
    • options: {
          execFee?: IFee;
          execMemo?: string;
          execSend?: ICoin[];
      } = {}
      • Optional execFee?: IFee
      • Optional execMemo?: string
      • Optional execSend?: ICoin[]

    Returns Promise<unknown>

  • Execute a query on the specified instance as the specified Connection.

    Type Parameters

    • Q

    Parameters

    Returns Promise<Q>

Generated using TypeDoc