Query data with multiple Txid in same API call

+2 votes
Hi,

Can we retrieve data belongs to multiple tx hash at sametime in same call.

getstreamitem test_stream txid1 - This is working.

getstreamitem test_stream txid1 txid2 or something like

getstreamitem test_stream ['txid1','txid2] is possible?

Thanks.
asked May 4, 2020 by blkchain_enthu

1 Answer

0 votes
I'm afraid you can't currently do this with any of the APIs. If latency is an issue between your application and node you may want to consider using a list of requests in single HTTP session. See 'Batch' here:

https://www.jsonrpc.org/specification
answered May 5, 2020 by MultiChain
...