Class ViewService

Hierarchy

  • ViewService

Constructors

Properties

Methods

Constructors

Properties

httpRequest: BaseHttpRequest

Methods

  • Execute view function of a module Execute the Move function with the given parameters and return its execution result.

    The Aptos nodes prune account state history, via a configurable time window. If the requested ledger version has been pruned, the server responds with a 410.

    Returns

    MoveValue

    Throws

    ApiError

    Parameters

    • requestBody: ViewRequest
    • Optional ledgerVersion: string

      Ledger version to get state of account

      If not provided, it will be the latest version

    Returns CancelablePromise<MoveValue[]>

Generated using TypeDoc