corda / net.corda.finance.workflows.asset / CashUtils

CashUtils

object CashUtils

Functions

generateSpend

fun generateSpend(services: <ERROR CLASS>, tx: <ERROR CLASS>, amount: <ERROR CLASS><Currency>, to: <ERROR CLASS>, onlyFromParties: Set<<ERROR CLASS>> = emptySet()): <ERROR CLASS><<ERROR CLASS>, List<PublicKey>>

Generate a transaction that moves an amount of currency to the given party, and sends any change back to sole identity of the calling node. Fails for nodes with multiple identities.

fun generateSpend(services: <ERROR CLASS>, tx: <ERROR CLASS>, amount: <ERROR CLASS><Currency>, ourIdentity: <ERROR CLASS>, to: <ERROR CLASS>, onlyFromParties: Set<<ERROR CLASS>> = emptySet(), anonymous: Boolean = true): <ERROR CLASS><<ERROR CLASS>, List<PublicKey>>

Generate a transaction that moves an amount of currency to the given party.

fun generateSpend(services: <ERROR CLASS>, tx: <ERROR CLASS>, payments: List<<ERROR CLASS><Currency>>, onlyFromParties: Set<<ERROR CLASS>> = emptySet()): <ERROR CLASS><<ERROR CLASS>, List<PublicKey>>

Generate a transaction that moves money of the given amounts to the recipients specified, and sends any change back to sole identity of the calling node. Fails for nodes with multiple identities.

fun generateSpend(services: <ERROR CLASS>, tx: <ERROR CLASS>, payments: List<<ERROR CLASS><Currency>>, ourIdentity: <ERROR CLASS>, onlyFromParties: Set<<ERROR CLASS>> = emptySet(), anonymous: Boolean = true): <ERROR CLASS><<ERROR CLASS>, List<PublicKey>>

Generate a transaction that moves money of the given amounts to the recipients specified.