fun getReferenceInput(index: Int): ContractState
Helper to simplify getting an indexed reference input ContractState.
index - the position of the item in the references.
index
Return The StateAndRef at the requested index.