multichain-web-demo doesn't show accurate values of asset on browser

+2 votes

Hi,

I tried spinning up multichain-web-demo, I see values printed on web-page shows endian specific data, where-as same transactions when performed on multichain-cli yields accurate results i.e via sendasset . That said I have a query :

  1. When values are key'd in, what command does https://github.com/MultiChain/multichain-web-demo/blob/master/page-issue.php#L103 perform i.e sendasset or something else ?

  2. Also can you help point us to source that's leveraged in-order to perform the same ?

asked Apr 28 by Harsha

1 Answer

0 votes

The Web Demo uses the createrawsendfrom command to create a new asset.

It would be surprising if there was an endian issue in the Web Demo, since it's PHP code that reads JSON structures from the MultiChain API, and doesn't decode transaction content directly.

So the issue is likely to be elsewhere – it's worth uncommenting the two lines in functions.php that include:

echo '<PRE>';

This will show up the JSON requests and responses that are being sent to the MultiChain API.

answered Apr 29 by MultiChain
...