corda / net.corda.core.flows / SendTransactionFlow

SendTransactionFlow

open class SendTransactionFlow : DataVendingFlow

The SendTransactionFlow should be used to send a transaction to another peer that wishes to verify that transaction's integrity by resolving and checking the dependencies as well. The other side should invoke ReceiveTransactionFlow at the right point in the conversation to receive the sent transaction and perform the resolution back-and-forth required to check the dependencies and download any missing attachments.

Parameters

otherSide - the target party.

stx - the SignedTransaction being sent to the otherSideSession.

Constructors

<init>

SendTransactionFlow(otherSide: FlowSession, stx: SignedTransaction)

The SendTransactionFlow should be used to send a transaction to another peer that wishes to verify that transaction's integrity by resolving and checking the dependencies as well. The other side should invoke ReceiveTransactionFlow at the right point in the conversation to receive the sent transaction and perform the resolution back-and-forth required to check the dependencies and download any missing attachments.

Inherited Properties

otherSideSession

val otherSideSession: FlowSession

payload

val payload: Any

Inherited Functions

call

open fun call(): Void?

This is where you fill out your business logic.

sendPayloadAndReceiveDataRequest

open fun sendPayloadAndReceiveDataRequest(otherSideSession: FlowSession, payload: Any): UntrustworthyData<Request>

verifyDataRequest

open fun verifyDataRequest(dataRequest: Data): Unit

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.