Sendassettoaddress step does not active following with Getting Started guide.

+1 vote

Dears: 

I have downloaded multichain-1.0-alpha-21.tar.gz and untar in my servers.

Going with de Getting Started guide, I stuck in the sendassettoaddress step. after create a asset1 account for 1000 qty, I begin sendassettoaddress cmd and return a txid:

chain2: sendassettoaddress 1D5wB7pVyRtzQbfUGPBt373jN8QKp2PMKBvMuV 27-266-29373 100 
{"method":"sendassettoaddress","params":["1D5wB7pVyRtzQbfUGPBt373jN8QKp2PMKBvMuV","27-266-29373",100],"id":1,"chain_name":"chain2"} 
de45cc5625ed10838e7341ee8ac449bc95043fca1e810886b7a1461ccec548c2 

and transaction shows like this:


"balance" : { 
"amount" : 0.00000000, 
"assets" : []}, 
"myaddresses" : [ 
"1D5wB7pVyRtzQbfUGPBt373jN8QKp2PMKBvMuV" ], 
"addresses" : [ ], 
"permissions" : [ ], 
"data" : [ ], 
"confirmations" : 89, 
"blockhash" : "0000f2527d8c9f20bfda7269b7d84477bbca539ae76b100654351a058dc3a686", 
"blockindex" : 1, 
"blocktime" : 1466137102, 
"txid" : "de45cc5625ed10838e7341ee8ac449bc95043fca1e810886b7a1461ccec548c2", 
"time" : 1466137096, 
"timereceived" : 1466137096 

but asset1 qty hasn't changed, what make me confuse. All the permission is ok. 

"name" : "asset1", 
"issuetxid" : "bd72a6df653a2838c27e883489de24f08eb38b4fae0277a92b5612860d94492b", 
"assetref" : "27-266-29373", 
"multiple" : 100, 
"units" : 0.01000000, 
"open" : false, 
"details" : { }, 
"issueqty" : 1000.00000000, 
"issueraw" : 100000 
}, 

Could anyone else get a solution?

Thank you. 

asked Jun 17, 2016 by zhangyiwu

1 Answer

+1 vote

The asset was sent from the address 1D5wB7pVyRtzQbfUGPBt373jN8QKp2PMKBvMuV back to itself, which is why the quantity hasn't changed. Please try using the sendassetfrom API.

answered Jun 22, 2016 by MultiChain
On the first server, now try sending 100 units of the asset to the second server’s wallet:
sendassettoaddress 1... asset1 100
I had misleaded by the getting started. This 1... reference to the second server address.
It succeeds in replacing 1... to second server's address. thanks
...