Skip to content

algokit_utils.transactions.transaction_composer

ErrorTransformer
MethodCallParams
AppMethodCallTransactionArgument
TxnParams
PaymentParamsParameters for a payment transaction.
AssetCreateParamsParameters for creating a new asset.
AssetConfigParamsParameters for configuring an existing asset.
AssetFreezeParamsParameters for freezing an asset.
AssetDestroyParamsParameters for destroying an asset.
OnlineKeyRegistrationParamsParameters for online key registration.
OfflineKeyRegistrationParamsParameters for offline key registration.
AssetTransferParamsParameters for transferring an asset.
AssetOptInParamsParameters for opting into an asset.
AssetOptOutParamsParameters for opting out of an asset.
AppCallParamsParameters for calling an application.
AppCreateSchemadict() -> new empty dictionary
AppCreateParamsParameters for creating an application.
AppUpdateParamsParameters for updating an application.
AppDeleteParamsParameters for deleting an application.
AppCallMethodCallParamsParameters for a regular ABI method call.
AppCreateMethodCallParamsParameters for an ABI method call that creates an application.
AppUpdateMethodCallParamsParameters for an ABI method call that updates an application.
AppDeleteMethodCallParamsParameters for an ABI method call that deletes an application.
BuiltTransactionsSet of transactions built by TransactionComposer.
TransactionComposerBuildResultResult of building transactions with TransactionComposer.
SendAtomicTransactionComposerResultsResults from sending an AtomicTransactionComposer transaction group.
TransactionComposerA class for composing and managing Algorand transactions.
calculate_extra_program_pages(→ int)Calculate minimum number of extra_pages required for provided approval and clear programs
populate_app_call_resources(…)Populate application call resources based on simulation results.
prepare_group_for_sending(…)Take an existing Atomic Transaction Composer and return a new one with changes applied to the transactions
send_atomic_transaction_composer(…)Send an AtomicTransactionComposer transaction group.

Bases: _CommonTxnParams

Parameters for a payment transaction.

The account that will receive the ALGO

Amount to send

If given, close the sender account and send the remaining balance to this address, defaults to None

Bases: _CommonTxnParams

Parameters for creating a new asset.

The total amount of the smallest divisible unit to create

The full name of the asset

The short ticker name for the asset

The metadata URL for the asset

The amount of decimal places the asset should have

Whether the asset is frozen by default in the creator address

The address that can change the manager, reserve, clawback, and freeze addresses

The address that holds the uncirculated supply

The address that can freeze the asset in any account

The address that can clawback the asset from any account

Hash of the metadata contained in the metadata URL

Bases: _CommonTxnParams

Parameters for configuring an existing asset.

The ID of the asset

The address that can change the manager, reserve, clawback, and freeze addresses, defaults to None

The address that holds the uncirculated supply, defaults to None

The address that can freeze the asset in any account, defaults to None

The address that can clawback the asset from any account, defaults to None

Bases: _CommonTxnParams

Parameters for freezing an asset.

The ID of the asset

The account to freeze or unfreeze

Whether the assets in the account should be frozen

Bases: _CommonTxnParams

Parameters for destroying an asset.

The ID of the asset

Bases: _CommonTxnParams

Parameters for online key registration.

The root participation public key

The VRF public key

The first round that the participation key is valid

The last round that the participation key is valid

The dilution for the 2-level participation key

The 64 byte state proof public key commitment, defaults to None

Bases: _CommonTxnParams

Parameters for offline key registration.

prevent_account_from_ever_participating_again : bool

Section titled “prevent_account_from_ever_participating_again : bool”

Whether to prevent the account from ever participating again

Bases: _CommonTxnParams

Parameters for transferring an asset.

The ID of the asset

The amount of the asset to transfer (smallest divisible unit)

The account to send the asset to

The account to take the asset from, defaults to None

The account to close the asset to, defaults to None

Bases: _CommonTxnParams

Parameters for opting into an asset.

The ID of the asset

Bases: _CommonTxnParams

Parameters for opting out of an asset.

The ID of the asset

The creator address of the asset

Bases: _CommonTxnParams

Parameters for calling an application.

on_complete : algosdk.transaction.OnComplete

Section titled “on_complete : algosdk.transaction.OnComplete”

The OnComplete action, defaults to None

The ID of the application, defaults to None

approval_program : str | bytes | None = None

Section titled “approval_program : str | bytes | None = None”

The program to execute for all OnCompletes other than ClearState, defaults to None

clear_state_program : str | bytes | None = None

Section titled “clear_state_program : str | bytes | None = None”

The program to execute for ClearState OnComplete, defaults to None

The state schema for the app, defaults to None

Application arguments, defaults to None

account_references : list[str] | None = None

Section titled “account_references : list[str] | None = None”

Account references, defaults to None

App references, defaults to None

asset_references : list[int] | None = None

Section titled “asset_references : list[int] | None = None”

Asset references, defaults to None

Number of extra pages required for the programs, defaults to None

Box references, defaults to None

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via: : d = {} for k, v in iterable:

d[k] = v

dict(

**

kwargs) -> new dictionary initialized with the name=value pairs : in the keyword argument list. For example: dict(one=1, two=2)

The number of global ints in the schema

The number of global byte slices in the schema

The number of local ints in the schema

The number of local byte slices in the schema

Bases: _CommonTxnParams

Parameters for creating an application.

The program to execute for all OnCompletes other than ClearState

The program to execute for ClearState OnComplete

The state schema for the app, defaults to None

on_complete : algosdk.transaction.OnComplete | None = None

Section titled “on_complete : algosdk.transaction.OnComplete | None = None”

The OnComplete action, defaults to None

Application arguments, defaults to None

account_references : list[str] | None = None

Section titled “account_references : list[str] | None = None”

Account references, defaults to None

App references, defaults to None

asset_references : list[int] | None = None

Section titled “asset_references : list[int] | None = None”

Asset references, defaults to None

Box references, defaults to None

Number of extra pages required for the programs, defaults to None

Bases: _CommonTxnParams

Parameters for updating an application.

The ID of the application

The program to execute for all OnCompletes other than ClearState

The program to execute for ClearState OnComplete

Application arguments, defaults to None

account_references : list[str] | None = None

Section titled “account_references : list[str] | None = None”

Account references, defaults to None

App references, defaults to None

asset_references : list[int] | None = None

Section titled “asset_references : list[int] | None = None”

Asset references, defaults to None

Box references, defaults to None

on_complete : algosdk.transaction.OnComplete | None = None

Section titled “on_complete : algosdk.transaction.OnComplete | None = None”

The OnComplete action, defaults to None

Bases: _CommonTxnParams

Parameters for deleting an application.

The ID of the application

Application arguments, defaults to None

account_references : list[str] | None = None

Section titled “account_references : list[str] | None = None”

Account references, defaults to None

App references, defaults to None

asset_references : list[int] | None = None

Section titled “asset_references : list[int] | None = None”

Asset references, defaults to None

Box references, defaults to None

on_complete : algosdk.transaction.OnComplete

Section titled “on_complete : algosdk.transaction.OnComplete”

The OnComplete action, defaults to DeleteApplicationOC

Bases: _BaseAppMethodCall

Parameters for a regular ABI method call.

The ID of the application

on_complete : algosdk.transaction.OnComplete | None = None

Section titled “on_complete : algosdk.transaction.OnComplete | None = None”

The OnComplete action, defaults to None

Bases: _BaseAppMethodCall

Parameters for an ABI method call that creates an application.

The program to execute for all OnCompletes other than ClearState

The program to execute for ClearState OnComplete

The state schema for the app, defaults to None

on_complete : algosdk.transaction.OnComplete | None = None

Section titled “on_complete : algosdk.transaction.OnComplete | None = None”

The OnComplete action (cannot be ClearState), defaults to None

Number of extra pages required for the programs, defaults to None

Bases: _BaseAppMethodCall

Parameters for an ABI method call that updates an application.

The ID of the application

The program to execute for all OnCompletes other than ClearState

The program to execute for ClearState OnComplete

on_complete : algosdk.transaction.OnComplete

Section titled “on_complete : algosdk.transaction.OnComplete”

The OnComplete action

Bases: _BaseAppMethodCall

Parameters for an ABI method call that deletes an application.

The ID of the application

on_complete : algosdk.transaction.OnComplete

Section titled “on_complete : algosdk.transaction.OnComplete”

The OnComplete action

Set of transactions built by TransactionComposer.

transactions : list[algosdk.transaction.Transaction]

Section titled “transactions : list[algosdk.transaction.Transaction]”

The built transactions

method_calls : dict[int, algosdk.abi.Method]

Section titled “method_calls : dict[int, algosdk.abi.Method]”

Map of transaction index to ABI method

signers : dict[int, algosdk.atomic_transaction_composer.TransactionSigner]

Section titled “signers : dict[int, algosdk.atomic_transaction_composer.TransactionSigner]”

Map of transaction index to TransactionSigner

Result of building transactions with TransactionComposer.

atc : algosdk.atomic_transaction_composer.AtomicTransactionComposer

Section titled “atc : algosdk.atomic_transaction_composer.AtomicTransactionComposer”

The AtomicTransactionComposer instance

transactions : list[algosdk.atomic_transaction_composer.TransactionWithSigner]

Section titled “transactions : list[algosdk.atomic_transaction_composer.TransactionWithSigner]”

The list of transactions with signers

method_calls : dict[int, algosdk.abi.Method]

Section titled “method_calls : dict[int, algosdk.abi.Method]”

Map of transaction index to ABI method

class SendAtomicTransactionComposerResults

Section titled “class SendAtomicTransactionComposerResults”

Results from sending an AtomicTransactionComposer transaction group.

The group ID if this was a transaction group

confirmations : list[algosdk.v2client.algod.AlgodResponseType]

Section titled “confirmations : list[algosdk.v2client.algod.AlgodResponseType]”

The confirmation info for each transaction

The transaction IDs that were sent

The transactions that were sent

The ABI return values from any ABI method calls

simulate_response : dict[str, Any] | None = None

Section titled “simulate_response : dict[str, Any] | None = None”

The simulation response if simulation was performed, defaults to None

calculate_extra_program_pages(approval: bytes | None, clear: bytes | None) → int

Section titled “calculate_extra_program_pages(approval: bytes | None, clear: bytes | None) → int”

Calculate minimum number of extra_pages required for provided approval and clear programs

populate_app_call_resources(atc: algosdk.atomic_transaction_composer.AtomicTransactionComposer, algod: algosdk.v2client.algod.AlgodClient) → algosdk.atomic_transaction_composer.AtomicTransactionComposer

Section titled “populate_app_call_resources(atc: algosdk.atomic_transaction_composer.AtomicTransactionComposer, algod: algosdk.v2client.algod.AlgodClient) → algosdk.atomic_transaction_composer.AtomicTransactionComposer”

Populate application call resources based on simulation results.

  • Parameters:
    • atc – The AtomicTransactionComposer containing transactions
    • algod – Algod client for simulation
  • Returns: Modified AtomicTransactionComposer with populated resources

prepare_group_for_sending(atc: algosdk.atomic_transaction_composer.AtomicTransactionComposer, algod: algosdk.v2client.algod.AlgodClient, populate_app_call_resources: bool | None = None, cover_app_call_inner_transaction_fees: bool | None = None, additional_atc_context: AdditionalAtcContext | None = None) → algosdk.atomic_transaction_composer.AtomicTransactionComposer

Section titled “prepare_group_for_sending(atc: algosdk.atomic_transaction_composer.AtomicTransactionComposer, algod: algosdk.v2client.algod.AlgodClient, populate_app_call_resources: bool | None = None, cover_app_call_inner_transaction_fees: bool | None = None, additional_atc_context: AdditionalAtcContext | None = None) → algosdk.atomic_transaction_composer.AtomicTransactionComposer”

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

  • Parameters:
    • atc – The AtomicTransactionComposer containing transactions
    • algod – Algod client for simulation
    • populate_app_call_resources – Whether to populate app call resources
    • cover_app_call_inner_transaction_fees – Whether to cover inner txn fees
    • additional_atc_context – Additional context for the AtomicTransactionComposer
  • Returns: Modified AtomicTransactionComposer ready for sending

send_atomic_transaction_composer(atc: algosdk.atomic_transaction_composer.AtomicTransactionComposer, algod: algosdk.v2client.algod.AlgodClient, , max_rounds_to_wait: int | None = 5, skip_waiting: bool = False, suppress_log: bool | None = None, populate_app_call_resources: bool | None = None, cover_app_call_inner_transaction_fees: bool | None = None, additional_atc_context: AdditionalAtcContext | None = None) → SendAtomicTransactionComposerResults

Section titled “send_atomic_transaction_composer(atc: algosdk.atomic_transaction_composer.AtomicTransactionComposer, algod: algosdk.v2client.algod.AlgodClient, , max_rounds_to_wait: int | None = 5, skip_waiting: bool = False, suppress_log: bool | None = None, populate_app_call_resources: bool | None = None, cover_app_call_inner_transaction_fees: bool | None = None, additional_atc_context: AdditionalAtcContext | None = None) → SendAtomicTransactionComposerResults”

Send an AtomicTransactionComposer transaction group.

Executes a group of transactions atomically using the AtomicTransactionComposer.

  • Parameters:
    • atc – The AtomicTransactionComposer instance containing the transaction group to send
    • algod – The Algod client to use for sending the transactions
    • max_rounds_to_wait – Maximum number of rounds to wait for confirmation, defaults to 5
    • skip_waiting – If True, don’t wait for transaction confirmation, defaults to False
    • suppress_log – If True, suppress logging, defaults to None
    • populate_app_call_resources – If True, populate app call resources, defaults to None
    • cover_app_call_inner_transaction_fees – If True, cover app call inner transaction fees, defaults to None
    • additional_atc_context – Additional context for the AtomicTransactionComposer
  • Returns: Results from sending the transaction group
  • Raises:
    • Exception – If there is an error sending the transactions
    • error – If there is an error from the Algorand node

A class for composing and managing Algorand transactions.

Provides a high-level interface for building and executing transaction groups using the Algosdk library. Supports various transaction types including payments, asset operations, application calls, and key registrations.

  • Parameters:
    • algod – An instance of AlgodClient used to get suggested params and send transactions
    • get_signer – A function that takes an address and returns a TransactionSigner for that address
    • get_suggested_params – Optional function to get suggested transaction parameters, defaults to using algod.suggested_params()
    • default_validity_window – Optional default validity window for transactions in rounds, defaults to 10
    • app_manager – Optional AppManager instance for compiling TEAL programs, defaults to None
    • error_transformers – Optional list of error transformers to use when an error is caught in simulate or send

Register a function that will be used to transform an error caught when simulating or sending.

  • Parameters: transformer – The error transformer function
  • Returns: The composer so you can chain method calls

add_transaction(transaction: algosdk.transaction.Transaction, signer: algosdk.atomic_transaction_composer.TransactionSigner | None = None) → TransactionComposer

Section titled “add_transaction(transaction: algosdk.transaction.Transaction, signer: algosdk.atomic_transaction_composer.TransactionSigner | None = None) → TransactionComposer”

Add a raw transaction to the composer.

  • Parameters:
    • transaction – The transaction to add
    • signer – Optional transaction signer, defaults to getting signer from transaction sender
  • Returns: The transaction composer instance for chaining
  • Example:
    composer.add_transaction(transaction)

Add a payment transaction.

  • Example:
    params = PaymentParams(
    sender="SENDER_ADDRESS",
    receiver="RECEIVER_ADDRESS",
    amount=AlgoAmount.from_algo(1),
    close_remainder_to="CLOSE_ADDRESS"
    ... (see PaymentParams for more options)
    )
    composer.add_payment(params)
  • Parameters: params – The payment transaction parameters
  • Returns: The transaction composer instance for chaining

Add an asset creation transaction.

  • Example:
    params = AssetCreateParams(
    sender="SENDER_ADDRESS",
    total=1000,
    asset_name="MyAsset",
    unit_name="MA",
    url="https://example.com",
    decimals=0,
    default_frozen=False,
    manager="MANAGER_ADDRESS",
    reserve="RESERVE_ADDRESS",
    freeze="FREEZE_ADDRESS",
    clawback="CLAWBACK_ADDRESS"
    ... (see AssetCreateParams for more options)
    composer.add_asset_create(params)
  • Parameters: params – The asset creation parameters
  • Returns: The transaction composer instance for chaining

Add an asset configuration transaction.

  • Example:
    params = AssetConfigParams(
    sender="SENDER_ADDRESS",
    asset_id=123456,
    manager="NEW_MANAGER_ADDRESS",
    reserve="NEW_RESERVE_ADDRESS",
    freeze="NEW_FREEZE_ADDRESS",
    clawback="NEW_CLAWBACK_ADDRESS"
    ... (see AssetConfigParams for more options)
    )
    composer.add_asset_config(params)
  • Parameters: params – The asset configuration parameters
  • Returns: The transaction composer instance for chaining

Add an asset freeze transaction.

  • Example:
    params = AssetFreezeParams(
    sender="SENDER_ADDRESS",
    asset_id=123456,
    account="ACCOUNT_TO_FREEZE",
    frozen=True
    ... (see AssetFreezeParams for more options)
    )
    composer.add_asset_freeze(params)
  • Parameters: params – The asset freeze parameters
  • Returns: The transaction composer instance for chaining

Add an asset destruction transaction.

  • Example:
    params = AssetDestroyParams(
    sender="SENDER_ADDRESS",
    asset_id=123456
    ... (see AssetDestroyParams for more options)
    composer.add_asset_destroy(params)
  • Parameters: params – The asset destruction parameters
  • Returns: The transaction composer instance for chaining

Add an asset transfer transaction.

  • Example:
    params = AssetTransferParams(
    sender="SENDER_ADDRESS",
    asset_id=123456,
    amount=10,
    receiver="RECEIVER_ADDRESS",
    clawback_target="CLAWBACK_TARGET_ADDRESS",
    close_asset_to="CLOSE_ADDRESS"
    ... (see AssetTransferParams for more options)
    composer.add_asset_transfer(params)
  • Parameters: params – The asset transfer parameters
  • Returns: The transaction composer instance for chaining

Add an asset opt-in transaction.

  • Example:
    params = AssetOptInParams(
    sender="SENDER_ADDRESS",
    asset_id=123456
    ... (see AssetOptInParams for more options)
    )
    composer.add_asset_opt_in(params)
  • Parameters: params – The asset opt-in parameters
  • Returns: The transaction composer instance for chaining

Add an asset opt-out transaction.

  • Example:
    params = AssetOptOutParams(
    sender="SENDER_ADDRESS",
    asset_id=123456,
    creator="CREATOR_ADDRESS"
    ... (see AssetOptOutParams for more options)
    composer.add_asset_opt_out(params)
  • Parameters: params – The asset opt-out parameters
  • Returns: The transaction composer instance for chaining

Add an application creation transaction.

  • Example:
    params = AppCreateParams(
    sender="SENDER_ADDRESS",
    approval_program="TEAL_APPROVAL_CODE",
    clear_state_program="TEAL_CLEAR_CODE",
    schema={'global_ints': 1, 'global_byte_slices': 1, 'local_ints': 1, 'local_byte_slices': 1},
    on_complete=OnComplete.NoOpOC,
    args=[b'arg1'],
    account_references=["ACCOUNT1"],
    app_references=[789],
    asset_references=[123],
    box_references=[],
    extra_program_pages=0
    ... (see AppCreateParams for more options)
    )
    composer.add_app_create(params)
  • Parameters: params – The application creation parameters
  • Returns: The transaction composer instance for chaining

Add an application update transaction.

  • Example:
    params = AppUpdateParams(
    sender="SENDER_ADDRESS",
    app_id=789,
    approval_program="TEAL_NEW_APPROVAL_CODE",
    clear_state_program="TEAL_NEW_CLEAR_CODE",
    args=[b'new_arg1'],
    account_references=["ACCOUNT1"],
    app_references=[789],
    asset_references=[123],
    box_references=[],
    on_complete=OnComplete.UpdateApplicationOC
    ... (see AppUpdateParams for more options)
    composer.add_app_update(params)
  • Parameters: params – The application update parameters
  • Returns: The transaction composer instance for chaining

Add an application deletion transaction.

  • Example:
    params = AppDeleteParams(
    sender="SENDER_ADDRESS",
    app_id=789,
    args=[b'delete_arg'],
    account_references=["ACCOUNT1"],
    app_references=[789],
    asset_references=[123],
    box_references=[],
    on_complete=OnComplete.DeleteApplicationOC
    ... (see AppDeleteParams for more options)
    composer.add_app_delete(params)
  • Parameters: params – The application deletion parameters
  • Returns: The transaction composer instance for chaining

Add an application call transaction.

  • Example:
    params = AppCallParams(
    sender="SENDER_ADDRESS",
    on_complete=OnComplete.NoOpOC,
    app_id=789,
    approval_program="TEAL_APPROVAL_CODE",
    clear_state_program="TEAL_CLEAR_CODE",
    schema={'global_ints': 1, 'global_byte_slices': 1, 'local_ints': 1, 'local_byte_slices': 1},
    ... (see AppCallParams for more options)
    )
    composer.add_app_call(params)
  • Parameters: params – The application call parameters
  • Returns: The transaction composer instance for chaining

Add an application creation method call transaction.

  • Parameters: params – The application creation method call parameters
  • Returns: The transaction composer instance for chaining
  • Example:
    # Basic example
    method = algosdk.abi.Method(
    name="method",
    args=[...],
    returns="string"
    )
    composer.add_app_create_method_call(
    AppCreateMethodCallParams(
    sender="CREATORADDRESS",
    approval_program="TEALCODE",
    clear_state_program="TEALCODE",
    method=method,
    args=["arg1_value"]
    )
    )
    # Advanced example
    method = ABIMethod(
    name="method",
    args=[{"name": "arg1", "type": "string"}],
    returns={"type": "string"}
    )
    composer.add_app_create_method_call(
    AppCreateMethodCallParams(
    sender="CREATORADDRESS",
    method=method,
    args=["arg1_value"],
    approval_program="TEALCODE",
    clear_state_program="TEALCODE",
    schema={
    "global_ints": 1,
    "global_byte_slices": 2,
    "local_ints": 3,
    "local_byte_slices": 4
    },
    extra_pages=1,
    on_complete=OnComplete.OptInOC,
    args=[bytes([1, 2, 3, 4])],
    account_references=["ACCOUNT_1"],
    app_references=[123, 1234],
    asset_references=[12345],
    box_references=["box1", {"app_id": 1234, "name": "box2"}],
    lease="lease",
    note="note",
    first_valid_round=1000,
    validity_window=10,
    extra_fee=AlgoAmount.from_micro_algos(1000),
    static_fee=AlgoAmount.from_micro_algos(1000),
    max_fee=AlgoAmount.from_micro_algos(3000)
    )
    )

Add an application update method call transaction.

  • Parameters: params – The application update method call parameters
  • Returns: The transaction composer instance for chaining

Add an application deletion method call transaction.

  • Parameters: params – The application deletion method call parameters
  • Returns: The transaction composer instance for chaining

Add an application call method call transaction.

  • Parameters: params – The application call method call parameters
  • Returns: The transaction composer instance for chaining

Add an online key registration transaction.

  • Parameters: params – The online key registration parameters
  • Returns: The transaction composer instance for chaining

Add an offline key registration transaction.

  • Parameters: params – The offline key registration parameters
  • Returns: The transaction composer instance for chaining

Add an existing AtomicTransactionComposer’s transactions.

  • Parameters: atc – The AtomicTransactionComposer to add
  • Returns: The transaction composer instance for chaining
  • Example:
    atc = AtomicTransactionComposer()
    atc.add_transaction(TransactionWithSigner(transaction, signer))
    composer.add_atc(atc)

Get the total number of transactions.

  • Returns: The number of transactions

Build the transaction group.

  • Returns: The built transaction group result

Rebuild the transaction group from scratch.

  • Returns: The rebuilt transaction group result

Build and return the transactions without executing them.

  • Returns: The built transactions result

Send the transaction group to the network.

  • Parameters: params – Parameters for the send operation
  • Returns: The transaction send results
  • Raises: self._transform_error – If the transaction fails (may be transformed by error transformers)

simulate(allow_more_logs: bool | None = None, allow_empty_signatures: bool | None = None, allow_unnamed_resources: bool | None = None, extra_opcode_budget: int | None = None, exec_trace_config: algosdk.v2client.models.SimulateTraceConfig | None = None, simulation_round: int | None = None, skip_signatures: bool | None = None) → SendAtomicTransactionComposerResults

Section titled “simulate(allow_more_logs: bool | None = None, allow_empty_signatures: bool | None = None, allow_unnamed_resources: bool | None = None, extra_opcode_budget: int | None = None, exec_trace_config: algosdk.v2client.models.SimulateTraceConfig | None = None, simulation_round: int | None = None, skip_signatures: bool | None = None) → SendAtomicTransactionComposerResults”

Simulate transaction group execution with configurable validation rules.

  • Parameters:
    • allow_more_logs – Whether to allow more logs than the standard limit
    • allow_empty_signatures – Whether to allow transactions with empty signatures
    • allow_unnamed_resources – Whether to allow unnamed resources.
    • extra_opcode_budget – Additional opcode budget to allocate
    • exec_trace_config – Configuration for execution tracing
    • simulation_round – Round number to simulate at
    • skip_signatures – Whether to skip signature validation
  • Returns: The simulation results
  • Example:
    result = composer.simulate(extra_opcode_budget=1000, skip_signatures=True, ...)

static arc2_note(note: Arc2TransactionNote) → bytes

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

Create an encoded transaction note that follows the ARC-2 spec.

https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0002.md

  • Parameters: note – The ARC-2 note to encode
  • Returns: The encoded note bytes
  • Raises: ValueError – If the dapp_name is invalid