How Do I Add Custom Fields When Issuing a New Asset With multichain-cli

+1 vote
From reading the help, this should work.  Am I formatting something wrong?

$> multichain-cli testchain1 issue 1MC8jRbekytALLSiNx86sBkPPDTjaSCnue5Yii asset10 1 0.00000001 '{"moe":"one"}'

{"method":"issue","params":["1MC8jRbekytALLSiNx86sBkPPDTjaSCnue5Yii","asset10",1,0.00000001,{"moe":"one"}],"id":1,"chain_name":"testchain1"}

 

error code: -1

error message:

value is type obj, expected real
asked Mar 1, 2017 by Bullsear

2 Answers

+2 votes
Have you tried using Multi-Chain Web Demo?
answered Mar 2, 2017 by makoya
+1 vote

You missed out the native-amount parameter in the API, which comes before the custom fields, and should probably be set to zero (unless you have configured your chain to use a native currency).

answered Mar 2, 2017 by MultiChain
...