Overview
Payroll use cases require creating hundreds of streams at once. Doing this sequentially prompts the user for hundreds of signatures.
Implementation Details
- Add a
createBatchStreams(configs: StreamConfig[]) method.
- Build a single transaction containing multiple
invokeHostFunction operations.
- Note: The transaction size limit in Soroban might restrict this to ~10-15 streams per tx. The method should chunk the array and return an array of prepared transactions if it exceeds the limit.
Overview
Payroll use cases require creating hundreds of streams at once. Doing this sequentially prompts the user for hundreds of signatures.
Implementation Details
createBatchStreams(configs: StreamConfig[])method.invokeHostFunctionoperations.