edward_wong
edward_wong

Reputation: 452

Corda — Share subset of states with counterparty using FilteredTransaction

Currently, if I want to share some state with the counterparty I have several options:

  1. Provide session in FinalityFlow
  2. Explicitly start SendSignedTransactionFlow
  3. Explicitly start SendStateAndRefFlow

Let's assume that I have a notarized SignedTransaction which produces 10 states.

Questions:

  1. Am I able to share only 5 states with some non-signing participant?
  2. May I send a FilteredTransaction and force the counterparty to store states that FilteredTransaction contains?

Upvotes: 0

Views: 61

Answers (1)

Peter Li
Peter Li

Reputation: 1032

To address your first question: Yes, you are able to share part of your signedTransaction to the counterparty (based on filtering) More details can be found @https://docs.corda.net/tutorial-tear-offs.html

To address your second question: You cannot actually force to store states to any node. What kind of data the Ledger gets store would be agreed during the Cordapp design.

Upvotes: 1

Related Questions