Error while issuing assets with open equal to true

+1 vote

Hi - I have been getting this error :

 

---This issue command ran fine

demo2: issue 17eCmxydksUKYSstQgBt2UV9EcJqQsWA4pJ7HX testasset1 0 1
{"method":"issue","params":["17eCmxydksUKYSstQgBt2UV9EcJqQsWA4pJ7HX","testasset1",0,1],"id":1,"chain_name":"demo2"}

2ea67ff8065cd643ba96f90d3e73716369546b966919c94001d8787da0f2003a

---This issue command fails
demo2:
demo2: issue 17eCmxydksUKYSstQgBt2UV9EcJqQsWA4pJ7HX testasset2 '{"open":true}' 0 1
{"method":"issue","params":["17eCmxydksUKYSstQgBt2UV9EcJqQsWA4pJ7HX","testasset2",{"open":true},0,1],"id":1,"chain_name":"demo2"}

error code: -3
error message:
Invalid amount

 

Please let me know what am i doing wrong? This command ran fine till few days ago. 

asked Mar 17, 2017 by anonymous

1 Answer

+1 vote

You need to format the command like this:

issue 17eCmxydksUKYSstQgBt2UV9EcJqQsWA4pJ7HX '{"name":"testasset2","open":true}' 0 1

answered Mar 17, 2017 by MultiChain
How to dynamically pass assetname
...