Reputation: 3752
At the end of a transaction flow, if it creates a new state (or states), how can I get access to the output StateAndRef objects?
Upvotes: 1
Views: 68
Reputation: 922
You can do three things:
SignedTransaction
object you can call SignedTransaction.tx.outRefsOfType<T>()
and that will return a List<StateAndRef<T>>
for you.List<StateAndRef<T>>
trackBy
functionality of the vault. When the transaction is committed the observable will emit StateAndRef<T>
s for the newly committed statesUpvotes: 0