net.corda.contracts.asset / kotlin.collections.Iterable / sumObligations

sumObligations

fun <P> Iterable<ContractState>.sumObligations(): Amount<Issued<Terms<P>>>

Sums the obligation states in the list, throwing an exception if there are none. All state objects in the list are presumed to be nettable.