corda / net.corda.finance.flows / CashIssueAndPaymentFlow

CashIssueAndPaymentFlow

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.

Parameters

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.

Types

IssueAndPaymentRequest

class IssueAndPaymentRequest : AbstractRequest

Constructors

<init>

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.

Properties

amount

val amount: <ERROR CLASS><Currency>

the amount of currency to issue.

anonymous

val anonymous: Boolean

if true, the recipient of the cash will be anonymous. Should be true for normal usage

issueRef

val issueRef: <ERROR CLASS>

a reference to put on the issued currency.

notary

val notary: <ERROR CLASS>

the notary to set on the output states.

recipient

val recipient: <ERROR CLASS>

the recipient of the currency

Inherited Properties

progressTracker

open val progressTracker: <ERROR CLASS>

Functions

call

fun call(): Result

Inherited Functions

finaliseTx

fun finaliseTx(tx: <ERROR CLASS>, sessions: Collection<<ERROR CLASS>>, message: String): <ERROR CLASS>

Companion Object Properties

ISSUING_CASH

val ISSUING_CASH: <ERROR CLASS>

PAYING_RECIPIENT

val PAYING_RECIPIENT: <ERROR CLASS>

Companion Object Functions

tracker

fun tracker(): <ERROR CLASS>