liststreamitems query result order

+6 votes
We are currently using the liststreamitems RPC call to return stream items and are using the count and start params to implement pagination.

Currently when we make the call the stream items come back in ascending order. However I was hoping there was an option to get the most recent items back first i.e. descending order.

Is there a way to do this?
asked Jul 8 by mark.mckillion

1 Answer

+1 vote

There is no way to reverse the order of the returned results – that would have to be taken care of in your application. However it's certainly possible to get the most recent items back by passing a negative value for the start parameter. Please see the online documentation here: https://www.multichain.com/developers/json-rpc-api/

answered Jul 12 by MultiChain
...