corda / net.corda.finance.workflows.asset / ObligationUtils / generateIssue

generateIssue

fun <P : Any> generateIssue(tx: TransactionBuilder, obligor: AbstractParty, issuanceDef: Terms<P>, pennies: Long, beneficiary: AbstractParty, notary: Party): Set<PublicKey>

Puts together an issuance transaction for the specified amount that starts out being owned by the given pubkey.

Parameters

tx - transaction builder to add states and commands to.

obligor - the party who is expected to pay some amount to fulfil the obligation.

issuanceDef - the terms of the obligation, including which contracts and underlying assets are acceptable forms of payment.

pennies - the quantity of the asset (in the smallest normal unit of measurement) owed.

beneficiary - the party the obligor is expected to pay.

notary - the notary for this transaction's outputs.