TransactionBuilder.addReferenceState - corda

corda / net.corda.core.transactions / TransactionBuilder / addReferenceState

# addReferenceState

`open fun addReferenceState(referencedStateAndRef: ReferencedStateAndRef<*>): TransactionBuilder`

Adds a reference input StateRef to the transaction.

Note: Reference states are only supported on Corda networks running a minimum platform version of 4. toWireTransaction will throw an IllegalStateException if called in such an environment.