Constructors

Methods

Constructors

Methods

  • Calls a view function on a contract, fetching the contract code and state if needed.

    Parameters

    • options: ViewFunctionCallOptions

      Options for calling the view function.

      • contractId

        The contract account ID.

      • methodName

        The name of the view function to call.

      • args

        The arguments to pass to the view function.

      • blockQuery

        The block query options.

    Returns Promise<any>

    • A promise that resolves to the result of the view function.