How would using a tokenId as input to an 'action' transaction look like?
Since tokenID is an implicit attribute, I assume that when an action has 2 tokenIDs, we get an implicit array attribute. I have written a candidate here:
<ts:transaction> <ts:ethereum contract="Kitty" function="breedWithAuto"> <ts:data> <ts:address>0x16baf0de678e52367adc69fd067e5edd1d33e3bf</ts:address> <ts:uint256 ref="tokenId"/> <ts:uint256 ref="tokenId"/> </ts:data> </ts:ethereum> </ts:transaction>
This supplies instruction to the handling agent (wallet mainly) to supply two tokenIds to the transaction. However those are selected is up to the UX designer.
The wallet should pick up that the inputs are individual tokens, and so it should ask the user to select tokens from the previous view where all the tokens on the currently selected account which are belonging to that token contract are displayed.