So I want to use the sui_multiGetTransactionBlocks
method found here:
https://docs.sui.io/sui-jsonrpc#sui_multiGetTransactionBlocks
Read API
Returns an ordered list of transaction responses The method will throw an error if the input contains any duplicate or the input size exceeds QUERY_MAX_RESULT_LIMIT
If I’m calling this via NodeJS, where on earth is QUERY_MAX_RESULT_LIMIT
defined or set?
This is how I’m making my calls on @mysten/sui.js v0.44.0, using 2 transactions for example. I however want to process many more, 1000+ for example.
const sui = require('@mysten/sui.js/client');
const node = new sui.SuiClient({url: <path>});
node.multiGetTransactionBlocks({
digests: ["JDSUknTYxyqaacNLSEUmFNMcw4XAVTXgkMgWbnHjV5bU", "JCey4SVtWfWxPz4sKfPXiR5swKW5zM2LJ3ho68rQSGeR"],
options: {
showBalanceChanges: true,
showBcs: true,
showContent: true,
showDisplay: true,
showEffects: true,
showEvents: true,
showInput: true,
showObjectChanges: true,
showOwner: true,
showPreviousTransaction: true,
showStorageRebate: true,
showType: true}
}).then(function(t){
console.log(t.length);
}).catch(async function(e) {
console.log(e);
})