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

generateCloseOutNetting

@JvmStatic fun <P : Any> generateCloseOutNetting(tx: TransactionBuilder, signer: AbstractParty, vararg inputs: StateAndRef<State<P>>): Unit

Generate a transaction performing close-out netting of two or more states.

Parameters

signer - the party which will sign the transaction. Must be one of the obligor or beneficiary.

inputs - two or more states, which must be compatible for bilateral netting (same issuance definitions, and same parties involved).