Skip to content

prepareGroupForSending

prepareGroupForSending(atc, algod, sendParams, additionalAtcContext?): Promise<AtomicTransactionComposer>

Defined in: algokit-utils-ts/src/transaction/transaction.ts:438

Take an existing Atomic Transaction Composer and return a new one with changes applied to the transactions based on the supplied sendParams to prepare it for sending. Please note, that before calling .execute() on the returned ATC, you must call .buildGroup().

AtomicTransactionComposer

The ATC containing the txn group

AlgodClient

The algod client to use for the simulation

SendParams

The send params for the transaction group

AdditionalAtomicTransactionComposerContext

Additional ATC context used to determine how best to change the transactions in the group

Promise<AtomicTransactionComposer>

A new ATC with the changes applied