Skip to content

algopy_testing.value_generators.txn

TxnValueGeneratorFactory for generating test data for transactions.

Factory for generating test data for transactions.

application_call(scratch_space: Sequence[algopy.Bytes | algopy.UInt64 | int | bytes] | None = None, **fields: Unpack[ApplicationCallFields]) → algopy.gtxn.ApplicationCallTransaction

Section titled “application_call(scratch_space: Sequence[algopy.Bytes | algopy.UInt64 | int | bytes] | None = None, **fields: Unpack[ApplicationCallFields]) → algopy.gtxn.ApplicationCallTransaction”

Generate a new application call transaction.

  • Parameters:
    • scratch_space – Scratch space data.

    • **fields

      Fields to be set in the transaction.

  • Returns: New application call transaction.
  • Raises: TypeError – If app_id is not an instance of algopy.Application

Generate a new asset transfer transaction with specified fields.

  • Parameters: **fields

    Fields to be set in the transaction.

  • Returns: The newly generated asset transfer transaction.

Generate a new payment transaction with specified fields.

  • Parameters: **fields

    Fields to be set in the transaction.

  • Returns: The newly generated payment transaction.

Generate a new ACFG transaction with specified fields.

  • Parameters: **fields

    Fields to be set in the transaction.

  • Returns: The newly generated asset config transaction.

Generate a new key registration transaction with specified fields.

  • Parameters: **fields

    Fields to be set in the transaction.

  • Returns: The newly generated key registration transaction.

Generate a new asset freeze transaction with specified fields.

  • Parameters: **fields

    Fields to be set in the transaction.

  • Returns: The newly generated asset freeze transaction.

Generate a new transaction with specified fields.

  • Parameters: **fields

    Fields to be set in the transaction.

  • Returns: The newly generated transaction.