Java API

+1 vote

Hello Dear,
I would like to use the Java API of multichain.

When I try to call Issue method of IssueCommand class, it returns error "result:error: Error parsing JSON:source". 

IssueCommand.issue("13KEZGKiAVBuT5LucrerES5bz892pmMxXa17ww", "Data source 2", 10000, 1); 

I printed the command which runs on the server. 

multichain-cli newchain issue "13KEZGKiAVBuT5LucrerES5bz892pmMxXa17ww" "Test 2 asset" 10000 1.0 
command run

Could you tell what is the problem and how could I solve it?

Thank you so much.

Looking forward to hear something from you.

Mobile: (1) 306-380-4386,


asked Apr 26, 2017 by anonymous

2 Answers

0 votes
This Java API was not developed by us, so you might consider contacting the author who can provide specific help. Apart from that, I would suggest seeing if you can find where the API can output the full JSON-RPC request sent, and compare that to what is shown on the multichain-cli command line. If there is a structural difference, that might explain the problem.
answered Apr 27, 2017 by MultiChain
+1 vote
check the Quotes. pass it as "\ instead of "
answered Feb 14, 2018 by dannydias