Function formatProtocolCancellation

  • Name

    formatProtocolCancellation

    Summary

    Returns an object according to the cancellation kind required.

    Returns

    An object representing the cancellation of the transmission protocol.

    Parameters

    • cancellation: "anytime" | "none" | "untilBlock"

      The cancellation kind (string) : "anytime", "none" or "untilBlock".

    • Optional UntilBlock: number

      The block number before which user cancellation is available. Can only be set for "untilBlock" cancellation.

    Returns Protocols.TransmissionCancellation

Generated using TypeDoc