supra-ts-sdk - v2.0.0
    Preparing search index...

    Function parseVmStatus

    • Parses the Move VM status out of a message the node produced. The formats are:

      • View and VM errors: Failed to execute view function: LINKER_ERROR at location ..., Failed to execute view function: ABORTED with sub status 4001 at location ..., Move VM error: ABORTED.
      • Submit validation errors: General err: MoveTransactionValidationFailed(<sender>, <sequence number>, SEQUENCE_NUMBER_TOO_OLD).
      • vm_status of a discarded transaction: Status Code: SEQUENCE_NUMBER_TOO_OLD, Type Validation.
      • vm_status of a kept transaction: Move abort in 0x1::coin: EINSUFFICIENT_BALANCE(0x10006): ... (status ABORTED, sub status 0x10006), Out of gas (status OUT_OF_GAS), and Execution failed in ... at code offset N, Status Code: ARITHMETIC_ERROR.

      A message that carries none of these yields an empty result.

      Parameters

      • message: string | undefined

      Returns ParsedVmStatus