SendStateAndRefFlow
Keywords: net.corda.core.flows.SendStateAndRefFlow class
Date: 2023-09-18

net.corda.core.flows

## Class SendStateAndRefFlow

- net.corda.core.flows.FlowLogic<T>
- - DataVendingFlow
  - - net.corda.core.flows.SendStateAndRefFlow

-     public class SendStateAndRefFlow
      extends DataVendingFlow

  The `class SendStateAndRefFlow` should be used to send a list of input `class StateAndRef` to another peer that wishes to verify the input's integrity by resolving and checking the dependencies as well. The other side should invoke `class ReceiveStateAndRefFlow` at the right point in the conversation to receive the input state and ref and perform the resolution back-and-forth required to check the dependencies.

  See Also:
    `class SendStateAndRefFlow`, `class StateAndRef`, `class ReceiveStateAndRefFlow`

- - ### Constructor Detail

    - #### SendStateAndRefFlow

          public SendStateAndRefFlow(@NotNull
                                     FlowSession otherSideSession,
                                     @NotNull
                                     java.util.List<? extends net.corda.core.contracts.StateAndRef<?>> stateAndRefs)

      The `class SendStateAndRefFlow` should be used to send a list of input `class StateAndRef` to another peer that wishes to verify the input's integrity by resolving and checking the dependencies as well. The other side should invoke `class ReceiveStateAndRefFlow` at the right point in the conversation to receive the input state and ref and perform the resolution back-and-forth required to check the dependencies.

      Parameters:
        `otherSideSession` - the target session.
        `stateAndRefs` - the list of `class StateAndRef` being sent to the otherSideSession.
      See Also:
        `class SendStateAndRefFlow`, `class StateAndRef`, `class ReceiveStateAndRefFlow`