Build a batch of messages for a multi-message transaction.
Helper function to construct multiple messages that will be included in a single transaction. Useful for atomic operations.
Array of message builders or EncodeObjects
Array of EncodeObjects ready for signing
const msgs = buildBatchMessages([ buildMsgRequestAction(metadata1, price1, expTime1, creator), buildMsgRequestAction(metadata2, price2, expTime2, creator),]);const result = await client.signAndBroadcast(address, msgs, totalFee); Copy
const msgs = buildBatchMessages([ buildMsgRequestAction(metadata1, price1, expTime1, creator), buildMsgRequestAction(metadata2, price2, expTime2, creator),]);const result = await client.signAndBroadcast(address, msgs, totalFee);
Build a batch of messages for a multi-message transaction.
Helper function to construct multiple messages that will be included in a single transaction. Useful for atomic operations.