Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple Broadcasting of a transaction - BroadcastTransactionFlow
@InitiatingFlow
class BroadcastTransactionFlow(
private val stx: SignedTransaction,
private val recipients: List<Party>
) : FlowLogic<Unit>() {
@Suspendable
override fun call() {
for (recipient in recipients) {
val session = initiateFlow(recipient)
subFlow(SendTransactionFlow(session, stx))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.