Class Operation

An operation object.

Constructors

Properties

id: string

Methods

  • Parameters

    • waitFinal: boolean = false

    Returns Promise<string>

  • Gets the events of the operation once the block reaches the final state.

    Returns Promise<OutputEvents>

    The events of the operation.

  • Gets the events of the speculative execution of the operation.

    Returns Promise<OutputEvents>

    The speculative events of the operation.

  • Waits for the block containing the operation to be final.

    Parameters

    • Optional timeout: number

      The maximum time to wait.

    • Optional period: number

      The time interval to check the status.

    Returns Promise<OperationStatus>

    The status of the operation or NotFound if the timeout is reached.

  • Waits for the operation to be included in a block.

    Parameters

    • Optional timeout: number

      The maximum time to wait.

    • Optional period: number

      The time interval to check the status.

    Returns Promise<OperationStatus>

    The status of the operation or NotFound if the timeout is reached.