Can i link an atomic transaction to a stream

+2 votes
I am thinking of a use case where the asset transfer between 2 parties will happen based on supply & delivery but the process involve other parties as well who will facilitate the process and update the stream for real time updates.

I don't know think stream can support atomic transaction so the question comes to- is it possible to link stream with atomic transaction?
asked Feb 7, 2017 by abhijeetj

1 Answer

0 votes

Yes, you can build a single blockchain transaction that performs a multi-asset transfer and writes to a stream, all in a single atomic operation.

You can't yet use the createrawexchange + appendrawexchange APIs for this, because they don't yet support metadata. (They are based on a signature type where each participant only signs one input and one output, so this would anyway raise the question as to who has signed the metadata).

However you can certainly use createrawtransaction to build a transaction that performs an atomic swap and writes to a stream simultaneously. All the participants in the chain can examine what this transaction is doing before deciding whether to sign it using signrawtransaction.

For more information on raw transactions please see here:

http://www.multichain.com/developers/raw-transactions/

answered Feb 7, 2017 by MultiChain
...