About exchange between a native currency and assets

+2 votes
I made a blockchain with MultiChain. It has a native currency which name is 'MYCOIN'. And I issued 3 assets, ASSET-A, ASSET-B, ASSET-C.

Is it possible exchange between the native currency 'MYCOIN' and 3 assets? If possible, What kind of api command do I have to use? In that case, how about fee for each case?

for example,

1) MYCOIN --> ASSET-A

2) ASSET-A --> COIN-A

3) ASSET-A --> ASSET-B

4) ASSET-B --> ASSET-C

5) ASSET-A --> MYCOIN

 

Thank you in advance.
asked Apr 13, 2018 by enics

1 Answer

0 votes
 
Best answer

Yes, you can conduct atomic exchanges which include the native blockchain currency, in the usual way. Use "" instead of an asset name to specify a quantity of the native currency. Atomic exchanges are explained in detail in this tutorial: https://www.multichain.com/developers/atomic-exchange-transactions/

answered Apr 15, 2018 by MultiChain
Error atomic with native
...