Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides a set of methods to create contract references for already existing contracts

Hierarchy

  • ContractLoader

Index

Methods

Methods

Static at

  • at<T>(accountOrName: Account | string): Promise<T>
  • Loads a contract instance for a contract which is already deployed to the blockchain.

    ContractLoader.at<MyContractTypeDef>(myContractAccount);
    
    // or
    
    ContractLoader.at<MyContractTypeDef>('my.contract');
    author

    Kevin Brown <github.com/thekevinbrown>

    Type parameters

    Parameters

    • accountOrName: Account | string

      The account or account name where the contract is already deployed.

    Returns Promise<T>

    Contract instance

Generated using TypeDoc