Skip to content

algopy.gtxn

ApplicationCallTransactionApplication call group transaction
AssetConfigTransactionAsset config group transaction
AssetFreezeTransactionAsset freeze group transaction
AssetTransferTransactionAsset transfer group transaction
KeyRegistrationTransactionKey registration group transaction
PaymentTransactionPayment group transaction
TransactionGroup Transaction of any type
TransactionBaseShared transaction properties

class algopy.gtxn.ApplicationCallTransaction

Section titled “class algopy.gtxn.ApplicationCallTransaction”

ApplicationCallTransaction(group_index: algopy.UInt64 | int)

Application call group transaction

accounts(index: algopy.UInt64 | int, /) → algopy.Account

Accounts listed in the ApplicationCall transaction

app_args(index: algopy.UInt64 | int, /) → algopy.Bytes

Arguments passed to the application in the ApplicationCall transaction

app_id : algopy.Application

ApplicationID from ApplicationCall transaction

approval_program : algopy.Bytes

Approval program

approval_program_pages(index: algopy.UInt64 | int, /) → algopy.Bytes

Approval Program as an array of pages

apps(index: algopy.UInt64 | int, /) → algopy.Application

Foreign Apps listed in the ApplicationCall transaction

assets(index: algopy.UInt64 | int, /) → algopy.Asset

Foreign Assets listed in the ApplicationCall transaction

clear_state_program : algopy.Bytes

Clear State program

clear_state_program_pages(index: algopy.UInt64 | int, /) → algopy.Bytes

Clear State Program as an array of pages

created_app : algopy.Application

ApplicationID allocated by the creation of an application

extra_program_pages : algopy.UInt64

Number of additional pages for each of the application’s approval and clear state programs. An ExtraProgramPages of 1 means 2048 more total bytes, or 1024 for each program.

fee : algopy.UInt64

microalgos

first_valid : algopy.UInt64

round number

first_valid_time : algopy.UInt64

UNIX timestamp of block before txn.FirstValid. Fails if negative

global_num_bytes : algopy.UInt64

Number of global state byteslices in ApplicationCall

global_num_uint : algopy.UInt64

Number of global state integers in ApplicationCall

group_index : algopy.UInt64

Position of this transaction within an atomic transaction group. A stand-alone transaction is implicitly element 0 in a group of 1

last_log : algopy.Bytes

The last message emitted. Empty bytes if none were emitted. Application mode only

last_valid : algopy.UInt64

round number

lease : algopy.Bytes

32 byte lease value

local_num_bytes : algopy.UInt64

Number of local state byteslices in ApplicationCall

local_num_uint : algopy.UInt64

Number of local state integers in ApplicationCall

logs(index: algopy.UInt64 | int) → algopy.Bytes

Log messages emitted by an application call

note : algopy.Bytes

Any data up to 1024 bytes

num_accounts : algopy.UInt64

Number of ApplicationArgs

num_app_args : algopy.UInt64

Number of ApplicationArgs

num_approval_program_pages : algopy.UInt64

Number of Approval Program pages

num_apps : algopy.UInt64

Number of Applications

num_assets : algopy.UInt64

Number of Assets

num_clear_state_program_pages : algopy.UInt64

Number of Clear State Program pages

num_logs : algopy.UInt64

Number of logs

on_completion : algopy.OnCompleteAction

ApplicationCall transaction on completion action

rekey_to : algopy.Account

32 byte Sender’s new AuthAddr

sender : algopy.Account

32 byte address

txn_id : algopy.Bytes

The computed ID for this transaction. 32 bytes.

type : algopy.TransactionType

Transaction type as integer

type_bytes : algopy.Bytes

Transaction type as bytes

AssetConfigTransaction(group_index: algopy.UInt64 | int)

Asset config group transaction

asset_name : algopy.Bytes

The asset name

clawback : algopy.Account

32 byte address

config_asset : algopy.Asset

Asset ID in asset config transaction

created_asset : algopy.Asset

Asset ID allocated by the creation of an ASA

decimals : algopy.UInt64

Number of digits to display after the decimal place when displaying the asset

default_frozen : bool

Whether the asset’s slots are frozen by default or not, 0 or 1

fee : algopy.UInt64

microalgos

first_valid : algopy.UInt64

round number

first_valid_time : algopy.UInt64

UNIX timestamp of block before txn.FirstValid. Fails if negative

freeze : algopy.Account

32 byte address

group_index : algopy.UInt64

Position of this transaction within an atomic transaction group. A stand-alone transaction is implicitly element 0 in a group of 1

last_valid : algopy.UInt64

round number

lease : algopy.Bytes

32 byte lease value

manager : algopy.Account

32 byte address

metadata_hash : algopy.Bytes

32 byte commitment to unspecified asset metadata

note : algopy.Bytes

Any data up to 1024 bytes

rekey_to : algopy.Account

32 byte Sender’s new AuthAddr

reserve : algopy.Account

32 byte address

sender : algopy.Account

32 byte address

total : algopy.UInt64

Total number of units of this asset created

txn_id : algopy.Bytes

The computed ID for this transaction. 32 bytes.

type : algopy.TransactionType

Transaction type as integer

type_bytes : algopy.Bytes

Transaction type as bytes

unit_name : algopy.Bytes

Unit name of the asset

url : algopy.Bytes

URL

AssetFreezeTransaction(group_index: algopy.UInt64 | int)

Asset freeze group transaction

fee : algopy.UInt64

microalgos

first_valid : algopy.UInt64

round number

first_valid_time : algopy.UInt64

UNIX timestamp of block before txn.FirstValid. Fails if negative

freeze_account : algopy.Account

32 byte address of the account whose asset slot is being frozen or un-frozen

freeze_asset : algopy.Asset

Asset ID being frozen or un-frozen

frozen : bool

The new frozen value, 0 or 1

group_index : algopy.UInt64

Position of this transaction within an atomic transaction group. A stand-alone transaction is implicitly element 0 in a group of 1

last_valid : algopy.UInt64

round number

lease : algopy.Bytes

32 byte lease value

note : algopy.Bytes

Any data up to 1024 bytes

rekey_to : algopy.Account

32 byte Sender’s new AuthAddr

sender : algopy.Account

32 byte address

txn_id : algopy.Bytes

The computed ID for this transaction. 32 bytes.

type : algopy.TransactionType

Transaction type as integer

type_bytes : algopy.Bytes

Transaction type as bytes

class algopy.gtxn.AssetTransferTransaction

Section titled “class algopy.gtxn.AssetTransferTransaction”

AssetTransferTransaction(group_index: algopy.UInt64 | int)

Asset transfer group transaction

asset_amount : algopy.UInt64

value in Asset’s units

asset_close_to : algopy.Account

32 byte address

asset_receiver : algopy.Account

32 byte address

asset_sender : algopy.Account

32 byte address. Source of assets if Sender is the Asset’s Clawback address.

fee : algopy.UInt64

microalgos

first_valid : algopy.UInt64

round number

first_valid_time : algopy.UInt64

UNIX timestamp of block before txn.FirstValid. Fails if negative

group_index : algopy.UInt64

Position of this transaction within an atomic transaction group. A stand-alone transaction is implicitly element 0 in a group of 1

last_valid : algopy.UInt64

round number

lease : algopy.Bytes

32 byte lease value

note : algopy.Bytes

Any data up to 1024 bytes

rekey_to : algopy.Account

32 byte Sender’s new AuthAddr

sender : algopy.Account

32 byte address

txn_id : algopy.Bytes

The computed ID for this transaction. 32 bytes.

type : algopy.TransactionType

Transaction type as integer

type_bytes : algopy.Bytes

Transaction type as bytes

xfer_asset : algopy.Asset

Asset ID

class algopy.gtxn.KeyRegistrationTransaction

Section titled “class algopy.gtxn.KeyRegistrationTransaction”

KeyRegistrationTransaction(group_index: algopy.UInt64 | int)

Key registration group transaction

fee : algopy.UInt64

microalgos

first_valid : algopy.UInt64

round number

first_valid_time : algopy.UInt64

UNIX timestamp of block before txn.FirstValid. Fails if negative

group_index : algopy.UInt64

Position of this transaction within an atomic transaction group. A stand-alone transaction is implicitly element 0 in a group of 1

last_valid : algopy.UInt64

round number

lease : algopy.Bytes

32 byte lease value

non_participation : bool

Marks an account nonparticipating for rewards

note : algopy.Bytes

Any data up to 1024 bytes

rekey_to : algopy.Account

32 byte Sender’s new AuthAddr

selection_key : algopy.Bytes

32 byte address

sender : algopy.Account

32 byte address

state_proof_key : algopy.Bytes

64 byte state proof public key

txn_id : algopy.Bytes

The computed ID for this transaction. 32 bytes.

type : algopy.TransactionType

Transaction type as integer

type_bytes : algopy.Bytes

Transaction type as bytes

vote_first : algopy.UInt64

The first round that the participation key is valid.

vote_key : algopy.Bytes

32 byte address

vote_key_dilution : algopy.UInt64

Dilution for the 2-level participation key

vote_last : algopy.UInt64

The last round that the participation key is valid.

PaymentTransaction(group_index: algopy.UInt64 | int)

Payment group transaction

amount : algopy.UInt64

microalgos

close_remainder_to : algopy.Account

32 byte address

fee : algopy.UInt64

microalgos

first_valid : algopy.UInt64

round number

first_valid_time : algopy.UInt64

UNIX timestamp of block before txn.FirstValid. Fails if negative

group_index : algopy.UInt64

Position of this transaction within an atomic transaction group. A stand-alone transaction is implicitly element 0 in a group of 1

last_valid : algopy.UInt64

round number

lease : algopy.Bytes

32 byte lease value

note : algopy.Bytes

Any data up to 1024 bytes

receiver : algopy.Account

32 byte address

rekey_to : algopy.Account

32 byte Sender’s new AuthAddr

sender : algopy.Account

32 byte address

txn_id : algopy.Bytes

The computed ID for this transaction. 32 bytes.

type : algopy.TransactionType

Transaction type as integer

type_bytes : algopy.Bytes

Transaction type as bytes

Transaction(group_index: algopy.UInt64 | int)

Group Transaction of any type

accounts(index: algopy.UInt64 | int, /) → algopy.Account

Accounts listed in the ApplicationCall transaction

amount : algopy.UInt64

microalgos

app_args(index: algopy.UInt64 | int, /) → algopy.Bytes

Arguments passed to the application in the ApplicationCall transaction

app_id : algopy.Application

ApplicationID from ApplicationCall transaction

approval_program : algopy.Bytes

Approval program

approval_program_pages(index: algopy.UInt64 | int, /) → algopy.Bytes

Approval Program as an array of pages

apps(index: algopy.UInt64 | int, /) → algopy.Application

Foreign Apps listed in the ApplicationCall transaction

asset_amount : algopy.UInt64

value in Asset’s units

asset_close_to : algopy.Account

32 byte address

asset_name : algopy.Bytes

The asset name

asset_receiver : algopy.Account

32 byte address

asset_sender : algopy.Account

32 byte address. Source of assets if Sender is the Asset’s Clawback address.

assets(index: algopy.UInt64 | int, /) → algopy.Asset

Foreign Assets listed in the ApplicationCall transaction

clawback : algopy.Account

32 byte address

clear_state_program : algopy.Bytes

Clear State program

clear_state_program_pages(index: algopy.UInt64 | int, /) → algopy.Bytes

Clear State Program as an array of pages

close_remainder_to : algopy.Account

32 byte address

config_asset : algopy.Asset

Asset ID in asset config transaction

created_app : algopy.Application

ApplicationID allocated by the creation of an application

created_asset : algopy.Asset

Asset ID allocated by the creation of an ASA

decimals : algopy.UInt64

Number of digits to display after the decimal place when displaying the asset

default_frozen : bool

Whether the asset’s slots are frozen by default or not, 0 or 1

extra_program_pages : algopy.UInt64

Number of additional pages for each of the application’s approval and clear state programs. An ExtraProgramPages of 1 means 2048 more total bytes, or 1024 for each program.

fee : algopy.UInt64

microalgos

first_valid : algopy.UInt64

round number

first_valid_time : algopy.UInt64

UNIX timestamp of block before txn.FirstValid. Fails if negative

freeze : algopy.Account

32 byte address

freeze_account : algopy.Account

32 byte address of the account whose asset slot is being frozen or un-frozen

freeze_asset : algopy.Asset

Asset ID being frozen or un-frozen

frozen : bool

The new frozen value, 0 or 1

global_num_bytes : algopy.UInt64

Number of global state byteslices in ApplicationCall

global_num_uint : algopy.UInt64

Number of global state integers in ApplicationCall

group_index : algopy.UInt64

Position of this transaction within an atomic transaction group. A stand-alone transaction is implicitly element 0 in a group of 1

last_log : algopy.Bytes

The last message emitted. Empty bytes if none were emitted. Application mode only

last_valid : algopy.UInt64

round number

lease : algopy.Bytes

32 byte lease value

local_num_bytes : algopy.UInt64

Number of local state byteslices in ApplicationCall

local_num_uint : algopy.UInt64

Number of local state integers in ApplicationCall

logs(index: algopy.UInt64 | int) → algopy.Bytes

Log messages emitted by an application call

manager : algopy.Account

32 byte address

metadata_hash : algopy.Bytes

32 byte commitment to unspecified asset metadata

non_participation : bool

Marks an account nonparticipating for rewards

note : algopy.Bytes

Any data up to 1024 bytes

num_accounts : algopy.UInt64

Number of ApplicationArgs

num_app_args : algopy.UInt64

Number of ApplicationArgs

num_approval_program_pages : algopy.UInt64

Number of Approval Program pages

num_apps : algopy.UInt64

Number of Applications

num_assets : algopy.UInt64

Number of Assets

num_clear_state_program_pages : algopy.UInt64

Number of Clear State Program pages

num_logs : algopy.UInt64

Number of logs

on_completion : algopy.OnCompleteAction

ApplicationCall transaction on completion action

receiver : algopy.Account

32 byte address

rekey_to : algopy.Account

32 byte Sender’s new AuthAddr

reserve : algopy.Account

32 byte address

selection_key : algopy.Bytes

32 byte address

sender : algopy.Account

32 byte address

state_proof_key : algopy.Bytes

64 byte state proof public key

total : algopy.UInt64

Total number of units of this asset created

txn_id : algopy.Bytes

The computed ID for this transaction. 32 bytes.

type : algopy.TransactionType

Transaction type as integer

type_bytes : algopy.Bytes

Transaction type as bytes

unit_name : algopy.Bytes

Unit name of the asset

url : algopy.Bytes

URL

vote_first : algopy.UInt64

The first round that the participation key is valid.

vote_key : algopy.Bytes

32 byte address

vote_key_dilution : algopy.UInt64

Dilution for the 2-level participation key

vote_last : algopy.UInt64

The last round that the participation key is valid.

xfer_asset : algopy.Asset

Asset ID

TransactionBase

Shared transaction properties

fee : algopy.UInt64

microalgos

first_valid : algopy.UInt64

round number

first_valid_time : algopy.UInt64

UNIX timestamp of block before txn.FirstValid. Fails if negative

group_index : algopy.UInt64

Position of this transaction within an atomic transaction group. A stand-alone transaction is implicitly element 0 in a group of 1

last_valid : algopy.UInt64

round number

lease : algopy.Bytes

32 byte lease value

note : algopy.Bytes

Any data up to 1024 bytes

rekey_to : algopy.Account

32 byte Sender’s new AuthAddr

sender : algopy.Account

32 byte address

txn_id : algopy.Bytes

The computed ID for this transaction. 32 bytes.

type : algopy.TransactionType

Transaction type as integer

type_bytes : algopy.Bytes

Transaction type as bytes