com.r3corda.contracts.cash / kotlin.collections.Iterable / sumCash

sumCash

fun Iterable<ContractState>.sumCash(): <ERROR CLASS>

Sums the cash states in the list, throwing an exception if there are none, or if any of the cash states cannot be added together (i.e. are different currencies).