Is there a way to complete a partial offer with atomic transactions?

+1 vote

I have the following scenario. Person A wants to sell 100 units of Asset Alpha for 200 units of Asset Beta.

Person B see the offer and wants to buy 50 units of Asset Alpha so he needs to use the append (appendrawexchange) function. But I would like to let him do the transaction for half of the Assets (completerawexchange), and leave the other half for anyone else.

The only way I can think of doing that right now is to literally create 100 separate offers.

Am I understanding this wrong? Is there a better way to do this?

asked Nov 2, 2018 by Andrew

1 Answer

0 votes
Best answer

Yes, you can certainly do this, and you don't even need to do anything special or create many separate offers.

Person B uses appendrawexchange to add what they are willing to offer, and what they want to receive. These are not the full amounts, so the output will be a not-yet-balanced transaction.

This transaction is itself a new offer of exchange, with outstanding amounts offered and received, that can be passed on to other participants. They can treat it like any other offer of exchange.

answered Nov 5, 2018 by MultiChain