It is possible to save response of e.g. getassets as a .json file?

+1 vote
I would like to be able to get the data from the blockchain to display it on a UI somehow. As a first step i would like to save a response to a .json file. Is this possible? The 'cat'-method cannot be used inside the multichain-cli, or there any alternatives?
asked Jun 26, 2017 by ileeuwen

1 Answer

0 votes

The API response is already JSON formatted so all you would need to do is pipe the output of multichain-cli to a file. But instead, you should probably just connect to the MultiChain API directly from whichever programming language you are using for your GUI, e.g. PHP, Java, Python, C#. Many third party libraries are available for doing this (see the bottom of http://www.multichain.com/developers/) or you can just use any standard JSON-RPC library.

answered Jun 26, 2017 by MultiChain
...