Why the runtime param "maxshowndata" has a default size of 16384 bytes?

+2 votes

Hi, I know I can set the value with "setruntimeparam" and increase the size of "maxshowndata".The default size is 16384 bytes. What's the reason of a that small default size? Is it just about performance of the "liststreamitems" call or do I have to be careful increasing the value of "maxshowndata" because of other reasons?

asked Oct 25, 2018 by stefan

1 Answer

+1 vote

It's about preventing API responses from being too large, since this can slow things down both inside MultiChain and inside your application. You can always use the gettxoutdata API to get the full data.

answered Oct 29, 2018 by MultiChain
is there any performance advantage of using gettxoutdata instead of setting maxshowndata?
If you always want the full data, there may be some minor advantage to using gettxoutdata, because it is not wrapping the data in a JSON object. But the main purpose of this setting is to enable cases where you do not want the full data for every call to a stream retrieval API.
...