Skip to content

algokit_utils.transactions.transaction_composer

algokit_utils.transactions.transaction_composer

Section titled “algokit_utils.transactions.transaction_composer”
AppMethodCallTransactionArgument
ErrorTransformer
ErrorTransformerErrorRaised when an error transformer throws.
InvalidErrorTransformerValueErrorRaised when an error transformer returns a non-error value.
TransactionComposerErrorError raised when transaction composer fails to send transactions.
TransactionComposerConfig
TransactionComposerParams
TransactionWithSigner
BuiltTransactions
SendTransactionComposerResults
TransactionComposerLight-weight transaction composer built on top of algokit_transact.

Bases: RuntimeError

Raised when an error transformer throws.

exception InvalidErrorTransformerValueError(original_error: Exception, value: object)

Section titled “exception InvalidErrorTransformerValueError(original_error: Exception, value: object)”

Bases: RuntimeError

Raised when an error transformer returns a non-error value.

exception TransactionComposerError(message: str, *, cause: Exception | None = None, traces: list[SimulateTransactionResult] | None = None, sent_transactions: list[Transaction] | None = None, simulate_response: SimulateResponse | None = None)

Section titled “exception TransactionComposerError(message: str, *, cause: Exception | None = None, traces: list[SimulateTransactionResult] | None = None, sent_transactions: list[Transaction] | None = None, simulate_response: SimulateResponse | None = None)”

Bases: RuntimeError

Error raised when transaction composer fails to send transactions.

Contains detailed debugging information including simulation traces and sent transactions.

cover_app_call_inner_transaction_fees : bool = False

Section titled “cover_app_call_inner_transaction_fees : bool = False”

get_signer : Callable[[str], TransactionSigner]

Section titled “get_signer : Callable[[str], TransactionSigner]”

get_suggested_params : Callable[[], SuggestedParams] | None = None

Section titled “get_suggested_params : Callable[[], SuggestedParams] | None = None”

default_validity_window : int | None = None

Section titled “default_validity_window : int | None = None”

error_transformers : list[ErrorTransformer] | None = None

Section titled “error_transformers : list[ErrorTransformer] | None = None”

confirmations : list[PendingTransactionResponse]

Section titled “confirmations : list[PendingTransactionResponse]”

simulate_response : SimulateResponse | None = None

Section titled “simulate_response : SimulateResponse | None = None”

Light-weight transaction composer built on top of algokit_transact.

Create a shallow copy of this composer, optionally overriding config flags.

static arc2_note(note: Arc2TransactionNote) → bytes

Section titled “static arc2_note(note: Arc2TransactionNote) → bytes”

Build transactions with grouping, resource population, and fee adjustments applied.

Build queued transactions without resource population or grouping.

Returns raw transactions, method call metadata, and any explicit signers. This does not populate unnamed resources or adjust fees, and it leaves grouping unchanged.

Compose the transaction group and send it to the network.

Compose the transaction group and simulate execution without submitting to the network.

Args: : skip_signatures: Whether to skip signatures for all built transactions and use an empty signer instead. : This will set allow_empty_signatures and fix_signers when sending the request to algod.
result_on_failure: Whether to return the result on simulation failure instead of throwing an error. : Defaults to False (throws on failure).

**

raw_options: Additional options to pass to the simulate request.

Returns: : SendTransactionComposerResults containing simulation results.

Override max_fee for queued transactions by index before building.