Instance Method
coin(at:)
Returns the coin at the given index as an owned Coin (safe to store past this container’s lifetime).
func coin(at index: Int) -> Coin
Parameters
-
index
-
Zero-based index matching the transaction’s input(at:) index.
Discussion
Precondition
index must be in 0..<count.