Escrow

+1 vote
Is it possible to have a escrow for two users to swap two assets of different value in the same chain?

Alice wants to swap 10 units of assetALICE with BOB for 5 units of assetBOB.

(We can have an oracle that says 1 assetBOB=2 assetALICE, or they can decide it themselves)

How can we accomplish that? Maybe a 2 of 3 multisignature address? But how to swap assets?
asked Feb 5, 2016 by Off-bank

1 Answer

+1 vote
Oops. That is #6 in the tutorial http://www.multichain.com/getting-started/

My bad.
answered Feb 5, 2016 by off-bank
No worries, glad you found it!
Can we do that between an asset and the native currency?
You should be able to pass an empty string as the asset name in the parameters to preparelockunspent, to specify a quantity of the native currency.
...