vout value to be different from 0

+1 vote
Hi, What is the condition or scenario for "vout" value to be different from "0"

    txid: 'ae6d5658b73b5d4d8638da68e443d460fa7996c1e3e6a7dde0c2899afee0299b',
    vout: 0,

Thanks,
asked Apr 12, 2017 by saravana

1 Answer

0 votes

The vout value here is just the number of the output of the transaction indicated by txid, for whatever purpose you're viewing this information. If MultiChain is generating this (e.g. from preparelockunspent) it is selected randomly.

answered Apr 12, 2017 by MultiChain
Basically, I am saving txid for locating data stream of a file content stored and was wondering whether to save vout also .. or to safely assume this would be '0' always.. :)
Each transaction can only contain one item for each stream, so you probably don't need to store the vout. For example you can use the getstreamitem command without it.
...