same key of for a address in stream

+1 vote

I am able to create or publish same key name for a address in stream. for that I am loosing my data. help me on this. how I will restrict.
asked Jan 23, 2017 by sidhatha

1 Answer

0 votes
Best answer

Streams are designed to allow multiple pieces of data to be published under the same key. The application decides whether it pays attention to the first value, last value, or full history of values.

If you use liststreamkeys with verbose=true you will see the first and last item for each key.

You can also use different parameters with liststreamkeyitems to get the first or last item, or all items.

answered Jan 26, 2017 by MultiChain
selected Jan 27, 2017 by sidhatha