sui
sui copied to clipboard
Add batch read txn API
Currently, there is an API to get checkpoint
https://docs.sui.io/sui-jsonrpc#sui_getCheckpointContents
it gives you a list of transaction digests
however, there is no batch get transactions API such that I can get the list of full transactions by digests.
Can you add a batch read API?
I believe @qiaokan is building a service that needs to subscribe to a stream of transactions. Does it make sense to build it with getCheckpointContents + batch getting transactions by digests? cc @patrickkuo @longbowlu for fullnode api.
you should be able to use batched jsonrpc calls to get that. cc @666lcz if we have any sdk support around that
do you have a plan to support native batch API?
we have plan to support batch/multi get api using rocks db's multi get feature, @siomari is working on it
cool. Thanks!