class CashIssueAndPaymentFlow : AbstractCashFlow<Result>
Initiates a flow that self-issues cash and then send this to a recipient.
We issue cash only to ourselves so that all KYC/AML checks on payments are enforced consistently, rather than risk checks for issuance and payments differing. Outside of test scenarios it would be extremely unusual to issue cash and immediately transfer it, so impact of this limitation is considered minimal.
amount
- the amount of currency to issue.
issueRef
- a reference to put on the issued currency.
recipient
- the recipient of the currency
anonymous
- if true, the recipient of the cash will be anonymous. Should be true for normal usage
notary
- the notary to set on the output states.
class IssueAndPaymentRequest : AbstractRequest |
CashIssueAndPaymentFlow(amount: <ERROR CLASS><Currency>, issueRef: <ERROR CLASS>, recipient: <ERROR CLASS>, anonymous: Boolean, notary: <ERROR CLASS>) CashIssueAndPaymentFlow(request: IssueAndPaymentRequest) CashIssueAndPaymentFlow(amount: <ERROR CLASS><Currency>, issueRef: <ERROR CLASS>, recipient: <ERROR CLASS>, anonymous: Boolean, notary: <ERROR CLASS>, progressTracker: <ERROR CLASS>)
Initiates a flow that self-issues cash and then send this to a recipient. |
val amount: <ERROR CLASS><Currency>
the amount of currency to issue. |
|
val anonymous: Boolean
if true, the recipient of the cash will be anonymous. Should be true for normal usage |
|
val issueRef: <ERROR CLASS>
a reference to put on the issued currency. |
|
val notary: <ERROR CLASS>
the notary to set on the output states. |
|
val recipient: <ERROR CLASS>
the recipient of the currency |
open val progressTracker: <ERROR CLASS> |
fun call(): Result |
fun finaliseTx(tx: <ERROR CLASS>, sessions: Collection<<ERROR CLASS>>, message: String): <ERROR CLASS> |
val ISSUING_CASH: <ERROR CLASS> |
|
val PAYING_RECIPIENT: <ERROR CLASS> |
fun tracker(): <ERROR CLASS> |