Can an asset point to the content of a stream element?

+1 vote
Is there a way to put in an asset some kind of pointer to a stream element?

What I mean is something like this:

1) Alice issues an asset and transfers it to Bob. While doing so, she includes a pointer to an element of a stream.

2) Bob follows the pointer and retrieves the stream element.

Is this possible?

asked May 24, 2018 by anonymous

1 Answer

0 votes

Yes, absolutely. Assuming that each transaction only contains one item from each stream, you can put the txid of the transaction that wrote the stream item into the asset details. Then use the getstreamitem API to retrieve the stream item, given this txid.

answered May 24, 2018 by MultiChain