CashExitFlow
Keywords: net.corda.finance.flows.CashExitFlow class
Date: 2023-09-18

net.corda.finance.flows

## Class CashExitFlow

- net.corda.core.flows.FlowLogic<T>
- - AbstractCashFlow
  - - net.corda.finance.flows.CashExitFlow

-     @InitiatingFlow
       @StartableByRPC
      public class CashExitFlow
      extends AbstractCashFlow

  Initiates a flow that produces an cash exit transaction.

- - ### Field Detail

    - #### Companion

          public static net.corda.finance.flows.CashExitFlow.Companion Companion

  - ### Constructor Detail

    - #### CashExitFlow

          public CashExitFlow(@NotNull
                              Amount<java.util.Currency> amount,
                              @NotNull
                              OpaqueBytes issuerRef,
                              @NotNull
                              ProgressTracker progressTracker)

      Initiates a flow that produces an cash exit transaction.

      Parameters:
        `amount` - the amount of a currency to remove from the ledger.
        `issuerRef` - the reference on the issued currency. Added to the node's legal identity to determine theissuer.

    - #### CashExitFlow

          public CashExitFlow(@NotNull
                              Amount<java.util.Currency> amount,
                              @NotNull
                              OpaqueBytes issuerRef)

    - #### CashExitFlow

          public CashExitFlow(@NotNull
                              net.corda.finance.flows.CashExitFlow.ExitRequest request)

  - ### Method Detail

    - #### call

          @Suspendable
           @NotNull
          public net.corda.finance.flows.AbstractCashFlow.Result call()

      Returns:
        the signed transaction, and a mapping of parties to new anonymous identities generated (for this flow this map is always empty).