Closed joticajulian closed 1 year ago
With the current implementation this can be done with a similar code:
const transaction: TransactionJSON = {
header: { ... },
operations: [],
};
for (let item of items) {
transaction.operations.push(
(await nameService.functions.mint({
params
})
).operation
);
}
transaction = await signer.prepareTransaction(transaction);
await signer.sendTransaction(transaction);
Consider adding a transaction class. Example: