creating atomic transaction within single server.

+1 vote

Hi Team,

I have a scenario which needs to be implemented. Tried searching for it and couldn't get any proper answer.

1st Scenario:-

Is it possible to group a list of transactions (or) commands to be atomic, such that if any transaction (or) command in the group fails, then the entire thing should get reverted? For example:- I have two assets named:- asset A and asset B of quantity 50 respectively. Now i want to create asset3. This asset 3 can be created only if have asset A and asset B(25 Quantity of asset C = 25 quantity of asset a + 25 quantity of asset b). After creating 25 quantity of asset C, i will burn these 25 quantities of asset a and asset b.

How to group all these transaction atomic such that is any transaction (or) command fails in between, Entire thing should get reverted.

Note:- All the above happens in single server.

asked Feb 21, 2017 by Sakthivel

1 Answer

0 votes
You can use raw transactions to create very complex multiple operations in a single atomic, including your example of burning assets and issuing assets in a single transaction:

http://www.multichain.com/developers/raw-transactions/
answered Feb 21, 2017 by MultiChain
A clarification to add up
...