CashExitFlow - corda

corda / net.corda.finance.flows / CashExitFlow

# CashExitFlow

`@InitiatingFlow @StartableByRPC class CashExitFlow : AbstractCashFlow<Result>`

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 the issuer.

### Types

#### ExitRequest | `class ExitRequest : AbstractRequest`

### Constructors

#### <init> | `CashExitFlow(amount: Amount<Currency>, issuerRef: OpaqueBytes)` `CashExitFlow(request: ExitRequest)` Initiates a flow that produces an cash exit transaction. `CashExitFlow(amount: Amount<Currency>, issuerRef: OpaqueBytes, progressTracker: ProgressTracker)`

### Functions

#### call | `fun call(): Result`

### Companion Object Functions

#### tracker | `fun tracker(): ProgressTracker`

### Extension Functions

#### receiveAll | Suspends until a message has been received for each session in the specified sessions. `fun FlowLogic<*>.receiveAll(session: Pair<FlowSession, Class<out Any>>, vararg sessions: Pair<FlowSession, Class<out Any>>): Map<FlowSession, UntrustworthyData<Any>>` `fun <R : Any> FlowLogic<*>.receiveAll(receiveType: Class<R>, session: FlowSession, vararg sessions: FlowSession): List<UntrustworthyData<R>>` `fun <R : Any> FlowLogic<*>.receiveAll(session: FlowSession, vararg sessions: FlowSession): List<UntrustworthyData<R>>`