Skip to content

GTxn

Algorand TypeScript


Algorand TypeScript / op / GTxn

const GTxn: object

Defined in: op.ts:1740

Get values for transactions in the current group

accounts(a, b): Account

Accounts listed in the ApplicationCall transaction Min AVM version: 2

uint64

uint64

Account

amount(a): uint64

microalgos Min AVM version: 3

uint64

uint64

applicationArgs(a, b): bytes

Arguments passed to the application in the ApplicationCall transaction Min AVM version: 2

uint64

uint64

bytes

applicationId(a): Application

ApplicationID from ApplicationCall transaction Min AVM version: 2

uint64

Application

applications(a, b): Application

Foreign Apps listed in the ApplicationCall transaction Min AVM version: 3

uint64

uint64

Application

approvalProgram(a): bytes

Approval program Min AVM version: 2

uint64

bytes

approvalProgramPages(a, b): bytes

Approval Program as an array of pages Min AVM version: 7

uint64

uint64

bytes

assetAmount(a): uint64

value in Asset’s units Min AVM version: 3

uint64

uint64

assetCloseTo(a): Account

32 byte address Min AVM version: 3

uint64

Account

assetReceiver(a): Account

32 byte address Min AVM version: 3

uint64

Account

assets(a, b): Asset

Foreign Assets listed in the ApplicationCall transaction Min AVM version: 3

uint64

uint64

Asset

assetSender(a): Account

32 byte address. Source of assets if Sender is the Asset’s Clawback address. Min AVM version: 3

uint64

Account

clearStateProgram(a): bytes

Clear state program Min AVM version: 2

uint64

bytes

clearStateProgramPages(a, b): bytes

ClearState Program as an array of pages Min AVM version: 7

uint64

uint64

bytes

closeRemainderTo(a): Account

32 byte address Min AVM version: 3

uint64

Account

configAsset(a): Asset

Asset ID in asset config transaction Min AVM version: 2

uint64

Asset

configAssetClawback(a): Account

32 byte address Min AVM version: 2

uint64

Account

configAssetDecimals(a): uint64

Number of digits to display after the decimal place when displaying the asset Min AVM version: 2

uint64

uint64

configAssetDefaultFrozen(a): boolean

Whether the asset’s slots are frozen by default or not, 0 or 1 Min AVM version: 2

uint64

boolean

configAssetFreeze(a): Account

32 byte address Min AVM version: 2

uint64

Account

configAssetManager(a): Account

32 byte address Min AVM version: 2

uint64

Account

configAssetMetadataHash(a): bytes<32>

32 byte commitment to unspecified asset metadata Min AVM version: 2

uint64

bytes<32>

configAssetName(a): bytes

The asset name Min AVM version: 2

uint64

bytes

configAssetReserve(a): Account

32 byte address Min AVM version: 2

uint64

Account

configAssetTotal(a): uint64

Total number of units of this asset created Min AVM version: 2

uint64

uint64

configAssetUnitName(a): bytes

Unit name of the asset Min AVM version: 2

uint64

bytes

configAssetUrl(a): bytes

URL Min AVM version: 2

uint64

bytes

createdApplicationId(a): Application

ApplicationID allocated by the creation of an application (only with itxn in v5). Application mode only Min AVM version: 5

uint64

Application

createdAssetId(a): Asset

Asset ID allocated by the creation of an ASA (only with itxn in v5). Application mode only Min AVM version: 5

uint64

Asset

extraProgramPages(a): 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. Min AVM version: 4

uint64

uint64

fee(a): uint64

microalgos Min AVM version: 3

uint64

uint64

firstValid(a): uint64

round number Min AVM version: 3

uint64

uint64

firstValidTime(a): uint64

UNIX timestamp of block before txn.FirstValid. Fails if negative Min AVM version: 7

uint64

uint64

freezeAsset(a): Asset

Asset ID being frozen or un-frozen Min AVM version: 2

uint64

Asset

freezeAssetAccount(a): Account

32 byte address of the account whose asset slot is being frozen or un-frozen Min AVM version: 2

uint64

Account

freezeAssetFrozen(a): boolean

The new frozen value, 0 or 1 Min AVM version: 2

uint64

boolean

globalNumByteSlice(a): uint64

Number of global state byteslices in ApplicationCall Min AVM version: 3

uint64

uint64

globalNumUint(a): uint64

Number of global state integers in ApplicationCall Min AVM version: 3

uint64

uint64

groupIndex(a): uint64

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

uint64

uint64

lastLog(a): bytes

The last message emitted. Empty bytes if none were emitted. Application mode only Min AVM version: 6

uint64

bytes

lastValid(a): uint64

round number Min AVM version: 3

uint64

uint64

lease(a): bytes<32>

32 byte lease value Min AVM version: 3

uint64

bytes<32>

localNumByteSlice(a): uint64

Number of local state byteslices in ApplicationCall Min AVM version: 3

uint64

uint64

localNumUint(a): uint64

Number of local state integers in ApplicationCall Min AVM version: 3

uint64

uint64

logs(a, b): bytes

Log messages emitted by an application call (only with itxn in v5). Application mode only Min AVM version: 5

uint64

uint64

bytes

nonparticipation(a): boolean

Marks an account nonparticipating for rewards Min AVM version: 5

uint64

boolean

note(a): bytes

Any data up to 1024 bytes Min AVM version: 3

uint64

bytes

numAccounts(a): uint64

Number of Accounts Min AVM version: 2

uint64

uint64

numAppArgs(a): uint64

Number of ApplicationArgs Min AVM version: 2

uint64

uint64

numApplications(a): uint64

Number of Applications Min AVM version: 3

uint64

uint64

numApprovalProgramPages(a): uint64

Number of Approval Program pages Min AVM version: 7

uint64

uint64

numAssets(a): uint64

Number of Assets Min AVM version: 3

uint64

uint64

numClearStateProgramPages(a): uint64

Number of ClearState Program pages Min AVM version: 7

uint64

uint64

numLogs(a): uint64

Number of Logs (only with itxn in v5). Application mode only Min AVM version: 5

uint64

uint64

onCompletion(a): OnCompleteAction

ApplicationCall transaction on completion action Min AVM version: 2

uint64

OnCompleteAction

receiver(a): Account

32 byte address Min AVM version: 3

uint64

Account

rejectVersion(a): uint64

Application version for which the txn must reject Min AVM version: 12

uint64

uint64

rekeyTo(a): Account

32 byte Sender’s new AuthAddr Min AVM version: 2

uint64

Account

selectionPk(a): bytes<32>

32 byte address Min AVM version: 3

uint64

bytes<32>

sender(a): Account

32 byte address Min AVM version: 3

uint64

Account

stateProofPk(a): bytes<64>

State proof public key Min AVM version: 6

uint64

bytes<64>

txId(a): bytes<32>

The computed ID for this transaction. 32 bytes. Min AVM version: 3

uint64

bytes<32>

type(a): bytes

Transaction type as bytes Min AVM version: 3

uint64

bytes

typeEnum(a): TransactionType

Transaction type as integer Min AVM version: 3

uint64

TransactionType

voteFirst(a): uint64

The first round that the participation key is valid. Min AVM version: 3

uint64

uint64

voteKeyDilution(a): uint64

Dilution for the 2-level participation key Min AVM version: 3

uint64

uint64

voteLast(a): uint64

The last round that the participation key is valid. Min AVM version: 3

uint64

uint64

votePk(a): bytes<32>

32 byte address Min AVM version: 3

uint64

bytes<32>

xferAsset(a): Asset

Asset ID Min AVM version: 3

uint64

Asset