Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Fields

Transaction Fields

For further details on transaction fields, refer to the txn opcode specification.

Scalar Fields

INDEXNAMETYPEINDESCRIPTION
0Senderaddress32 byte address
1Feeuint64microalgos
2FirstValiduint64round number
3FirstValidTimeuint64v7UNIX timestamp of block before txn.FirstValid. Fails if negative
4LastValiduint64round number
5Note[]byteAny data up to 1024 bytes
6Lease[32]byte32 byte lease value
7Receiveraddress32 byte address
8Amountuint64microalgos
9CloseRemainderToaddress32 byte address
10VotePK[32]byte32 byte address
11SelectionPK[32]byte32 byte address
12VoteFirstuint64The first round that the participation key is valid.
13VoteLastuint64The last round that the participation key is valid.
14VoteKeyDilutionuint64Dilution for the 2-level participation key
15Type[]byteTransaction type as bytes
16TypeEnumuint64Transaction type as integer
17XferAssetuint64Asset ID
18AssetAmountuint64value in Asset’s units
19AssetSenderaddress32 byte address. Source of assets if Sender is the Asset’s Clawback address.
20AssetReceiveraddress32 byte address
21AssetCloseToaddress32 byte address
22GroupIndexuint64Position of this transaction within an atomic transaction group. A stand-alone transaction is implicitly element 0 in a group of 1
23TxID[32]byteThe computed ID for this transaction. 32 bytes.
24ApplicationIDuint64v2ApplicationID from ApplicationCall transaction
25OnCompletionuint64v2ApplicationCall transaction on completion action
27NumAppArgsuint64v2Number of ApplicationArgs
29NumAccountsuint64v2Number of Accounts
30ApprovalProgram[]bytev2Approval program
31ClearStateProgram[]bytev2Clear state program
32RekeyToaddressv232 byte Sender’s new AuthAddr
33ConfigAssetuint64v2Asset ID in asset config transaction
34ConfigAssetTotaluint64v2Total number of units of this asset created
35ConfigAssetDecimalsuint64v2Number of digits to display after the decimal place when displaying the asset
36ConfigAssetDefaultFrozenboolv2Whether the asset’s slots are frozen by default or not, 0 or 1
37ConfigAssetUnitName[]bytev2Unit name of the asset
38ConfigAssetName[]bytev2The asset name
39ConfigAssetURL[]bytev2URL
40ConfigAssetMetadataHash[32]bytev232 byte commitment to unspecified asset metadata
41ConfigAssetManageraddressv232 byte address
42ConfigAssetReserveaddressv232 byte address
43ConfigAssetFreezeaddressv232 byte address
44ConfigAssetClawbackaddressv232 byte address
45FreezeAssetuint64v2Asset ID being frozen or un-frozen
46FreezeAssetAccountaddressv232 byte address of the account whose asset slot is being frozen or un-frozen
47FreezeAssetFrozenboolv2The new frozen value, 0 or 1
49NumAssetsuint64v3Number of Assets
51NumApplicationsuint64v3Number of Applications
52GlobalNumUintuint64v3Number of global state integers in ApplicationCall
53GlobalNumByteSliceuint64v3Number of global state byteslices in ApplicationCall
54LocalNumUintuint64v3Number of local state integers in ApplicationCall
55LocalNumByteSliceuint64v3Number of local state byteslices in ApplicationCall
56ExtraProgramPagesuint64v4Number 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.
57Nonparticipationboolv5Marks an account nonparticipating for rewards
59NumLogsuint64v5Number of Logs (only with itxn in v5). Application mode only
60CreatedAssetIDuint64v5Asset ID allocated by the creation of an ASA (only with itxn in v5). Application mode only
61CreatedApplicationIDuint64v5ApplicationID allocated by the creation of an application (only with itxn in v5). Application mode only
62LastLog[]bytev6The last message emitted. Empty bytes if none were emitted. Application mode only
63StateProofPK[]bytev664 byte state proof public key
65NumApprovalProgramPagesuint64v7Number of Approval Program pages
67NumClearStateProgramPagesuint64v7Number of ClearState Program pages
68RejectVersionuint64v12Application version for which the txn must reject

Array Fields

INDEXNAMETYPEINDESCRIPTION
26ApplicationArgs[]bytev2Arguments passed to the application in the ApplicationCall transaction
28Accountsaddressv2Accounts listed in the ApplicationCall transaction
48Assetsuint64v3Foreign Assets listed in the ApplicationCall transaction
50Applicationsuint64v3Foreign Apps listed in the ApplicationCall transaction
58Logs[]bytev5Log messages emitted by an application call (only with itxn in v5). Application mode only
64ApprovalProgramPages[]bytev7Approval Program as an array of pages
66ClearStateProgramPages[]bytev7ClearState Program as an array of pages

Global Fields

Global fields are fields that are common to all the transactions in the group. In particular, it includes consensus parameters.

INDEXNAMETYPEINDESCRIPTION
0MinTxnFeeuint64microalgos
1MinBalanceuint64microalgos
2MaxTxnLifeuint64rounds
3ZeroAddressaddress32 byte address of all zero bytes
4GroupSizeuint64Number of transactions in this atomic transaction group. At least 1
5LogicSigVersionuint64v2Maximum supported version
6Rounduint64v2Current round number. Application mode only.
7LatestTimestampuint64v2Last confirmed block UNIX timestamp. Fails if negative. Application mode only.
8CurrentApplicationIDuint64v2ID of current application executing. Application mode only.
9CreatorAddressaddressv3Address of the creator of the current application. Application mode only.
10CurrentApplicationAddressaddressv5Address that the current application controls. Application mode only.
11GroupID[32]bytev5ID of the transaction group. 32 zero bytes if the transaction is not part of a group.
12OpcodeBudgetuint64v6The remaining cost that can be spent by opcodes in this program.
13CallerApplicationIDuint64v6The application ID of the application that called this application. 0 if this application is at the top-level. Application mode only.
14CallerApplicationAddressaddressv6The application address of the application that called this application. ZeroAddress if this application is at the top-level. Application mode only.
15AssetCreateMinBalanceuint64v10The additional minimum balance required to create (and opt-in to) an asset.
16AssetOptInMinBalanceuint64v10The additional minimum balance required to opt-in to an asset.
17GenesisHash[32]bytev10The Genesis Hash for the network.
18PayoutsEnabledboolv11Whether block proposal payouts are enabled.
19PayoutsGoOnlineFeeuint64v11The fee required in a keyreg transaction to make an account incentive eligible.
20PayoutsPercentuint64v11The percentage of transaction fees in a block that can be paid to the block proposer.
21PayoutsMinBalanceuint64v11The minimum balance an account must have in the agreement round to receive block payouts in the proposal round.
22PayoutsMaxBalanceuint64v11The maximum balance an account can have in the agreement round to receive block payouts in the proposal round.

Asset Fields

Asset fields include AssetHolding and AssetParam fields that are used in the asset_holding_get and asset_params_get opcodes.

Asset Holding

INDEXNAMETYPEDESCRIPTION
0AssetBalanceuint64Amount of the asset unit held by this account
1AssetFrozenboolIs the asset frozen or not

Asset Parameters

INDEXNAMETYPEINDESCRIPTION
0AssetTotaluint64Total number of units of this asset
1AssetDecimalsuint64See AssetParams.Decimals
2AssetDefaultFrozenboolFrozen by default or not
3AssetUnitName[]byteAsset unit name
4AssetName[]byteAsset name
5AssetURL[]byteURL with additional info about the asset
6AssetMetadataHash[32]byteArbitrary commitment
7AssetManageraddressManager address
8AssetReserveaddressReserve address
9AssetFreezeaddressFreeze address
10AssetClawbackaddressClawback address
11AssetCreatoraddressv5Creator address

Application Fields

Application fields used in the app_params_get opcode.

INDEXNAMETYPEINDESCRIPTION
0AppApprovalProgram[]byteBytecode of Approval Program
1AppClearStateProgram[]byteBytecode of Clear State Program
2AppGlobalNumUintuint64Number of uint64 values allowed in Global State
3AppGlobalNumByteSliceuint64Number of byte array values allowed in Global State
4AppLocalNumUintuint64Number of uint64 values allowed in Local State
5AppLocalNumByteSliceuint64Number of byte array values allowed in Local State
6AppExtraProgramPagesuint64Number of Extra Program Pages of code space
7AppCreatoraddressCreator address
8AppAddressaddressAddress for which this application has authority
9AppVersionuint64v12Version of the app, incremented each time the approval or clear program changes

Account Fields

Account fields used in the acct_params_get opcode.

INDEXNAMETYPEINDESCRIPTION
0AcctBalanceuint64Account balance in microalgos
1AcctMinBalanceuint64Minimum required balance for account, in microalgos
2AcctAuthAddraddressAddress the account is rekeyed to.
3AcctTotalNumUintuint64v8The total number of uint64 values allocated by this account in Global and Local States.
4AcctTotalNumByteSliceuint64v8The total number of byte array values allocated by this account in Global and Local States.
5AcctTotalExtraAppPagesuint64v8The number of extra app code pages used by this account.
6AcctTotalAppsCreateduint64v8The number of existing apps created by this account.
7AcctTotalAppsOptedInuint64v8The number of apps this account is opted into.
8AcctTotalAssetsCreateduint64v8The number of existing ASAs created by this account.
9AcctTotalAssetsuint64v8The numbers of ASAs held by this account (including ASAs this account created).
10AcctTotalBoxesuint64v8The number of existing boxes created by this account’s app.
11AcctTotalBoxBytesuint64v8The total number of bytes used by this account’s app’s box keys and values.
12AcctIncentiveEligibleboolv11Has this account opted into block payouts
13AcctLastProposeduint64v11The round number of the last block this account proposed.
14AcctLastHeartbeatuint64v11The round number of the last block this account sent a heartbeat.