ITxnCreate
Algorand TypeScript / op / ITxnCreate
constITxnCreate:object
Defined in: op.ts:2863
Create inner transactions
Type declaration
Section titled “Type declaration”begin()
Section titled “begin()”begin():
void
begin preparation of a new inner transaction in a new transaction group
itxn_begin initializes Sender to the application address; Fee to the minimum allowable, taking into account MinTxnFee and credit from overpaying in earlier transactions; FirstValid/LastValid to the values in the invoking transaction, and all other fields to zero or empty values.
Returns
Section titled “Returns”void
Native TEAL opcode: itxn_begin
Min AVM version: 5
next()
Section titled “next()”next():
void
begin preparation of a new inner transaction in the same transaction group
itxn_next initializes the transaction exactly as itxn_begin does
Returns
Section titled “Returns”void
Native TEAL opcode: itxn_next
Min AVM version: 6
setAccounts()
Section titled “setAccounts()”setAccounts(
a):void
Accounts listed in the ApplicationCall transaction Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setAmount()
Section titled “setAmount()”setAmount(
a):void
microalgos Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setApplicationArgs()
Section titled “setApplicationArgs()”setApplicationArgs(
a):void
Arguments passed to the application in the ApplicationCall transaction Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setApplicationId()
Section titled “setApplicationId()”setApplicationId(
a):void
ApplicationID from ApplicationCall transaction Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setApplications()
Section titled “setApplications()”setApplications(
a):void
Foreign Apps listed in the ApplicationCall transaction Min AVM version: 3
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setApprovalProgram()
Section titled “setApprovalProgram()”setApprovalProgram(
a):void
Approval program Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setApprovalProgramPages()
Section titled “setApprovalProgramPages()”setApprovalProgramPages(
a):void
Approval Program as an array of pages Min AVM version: 7
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setAssetAmount()
Section titled “setAssetAmount()”setAssetAmount(
a):void
value in Asset’s units Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setAssetCloseTo()
Section titled “setAssetCloseTo()”setAssetCloseTo(
a):void
32 byte address Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setAssetReceiver()
Section titled “setAssetReceiver()”setAssetReceiver(
a):void
32 byte address Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setAssets()
Section titled “setAssets()”setAssets(
a):void
Foreign Assets listed in the ApplicationCall transaction Min AVM version: 3
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setAssetSender()
Section titled “setAssetSender()”setAssetSender(
a):void
32 byte address. Source of assets if Sender is the Asset’s Clawback address. Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setClearStateProgram()
Section titled “setClearStateProgram()”setClearStateProgram(
a):void
Clear state program Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setClearStateProgramPages()
Section titled “setClearStateProgramPages()”setClearStateProgramPages(
a):void
ClearState Program as an array of pages Min AVM version: 7
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setCloseRemainderTo()
Section titled “setCloseRemainderTo()”setCloseRemainderTo(
a):void
32 byte address Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setConfigAsset()
Section titled “setConfigAsset()”setConfigAsset(
a):void
Asset ID in asset config transaction Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setConfigAssetClawback()
Section titled “setConfigAssetClawback()”setConfigAssetClawback(
a):void
32 byte address Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setConfigAssetDecimals()
Section titled “setConfigAssetDecimals()”setConfigAssetDecimals(
a):void
Number of digits to display after the decimal place when displaying the asset Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setConfigAssetDefaultFrozen()
Section titled “setConfigAssetDefaultFrozen()”setConfigAssetDefaultFrozen(
a):void
Whether the asset’s slots are frozen by default or not, 0 or 1 Min AVM version: 2
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”void
setConfigAssetFreeze()
Section titled “setConfigAssetFreeze()”setConfigAssetFreeze(
a):void
32 byte address Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setConfigAssetManager()
Section titled “setConfigAssetManager()”setConfigAssetManager(
a):void
32 byte address Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setConfigAssetMetadataHash()
Section titled “setConfigAssetMetadataHash()”setConfigAssetMetadataHash(
a):void
32 byte commitment to unspecified asset metadata Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setConfigAssetName()
Section titled “setConfigAssetName()”setConfigAssetName(
a):void
The asset name Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setConfigAssetReserve()
Section titled “setConfigAssetReserve()”setConfigAssetReserve(
a):void
32 byte address Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setConfigAssetTotal()
Section titled “setConfigAssetTotal()”setConfigAssetTotal(
a):void
Total number of units of this asset created Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setConfigAssetUnitName()
Section titled “setConfigAssetUnitName()”setConfigAssetUnitName(
a):void
Unit name of the asset Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setConfigAssetUrl()
Section titled “setConfigAssetUrl()”setConfigAssetUrl(
a):void
URL Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setExtraProgramPages()
Section titled “setExtraProgramPages()”setExtraProgramPages(
a):void
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
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setFee()
Section titled “setFee()”setFee(
a):void
microalgos Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setFreezeAsset()
Section titled “setFreezeAsset()”setFreezeAsset(
a):void
Asset ID being frozen or un-frozen Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setFreezeAssetAccount()
Section titled “setFreezeAssetAccount()”setFreezeAssetAccount(
a):void
32 byte address of the account whose asset slot is being frozen or un-frozen Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setFreezeAssetFrozen()
Section titled “setFreezeAssetFrozen()”setFreezeAssetFrozen(
a):void
The new frozen value, 0 or 1 Min AVM version: 2
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”void
setGlobalNumByteSlice()
Section titled “setGlobalNumByteSlice()”setGlobalNumByteSlice(
a):void
Number of global state byteslices in ApplicationCall Min AVM version: 3
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setGlobalNumUint()
Section titled “setGlobalNumUint()”setGlobalNumUint(
a):void
Number of global state integers in ApplicationCall Min AVM version: 3
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setLocalNumByteSlice()
Section titled “setLocalNumByteSlice()”setLocalNumByteSlice(
a):void
Number of local state byteslices in ApplicationCall Min AVM version: 3
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setLocalNumUint()
Section titled “setLocalNumUint()”setLocalNumUint(
a):void
Number of local state integers in ApplicationCall Min AVM version: 3
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setNonparticipation()
Section titled “setNonparticipation()”setNonparticipation(
a):void
Marks an account nonparticipating for rewards Min AVM version: 5
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”void
setNote()
Section titled “setNote()”setNote(
a):void
Any data up to 1024 bytes Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setOnCompletion()
Section titled “setOnCompletion()”setOnCompletion(
a):void
ApplicationCall transaction on completion action Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setReceiver()
Section titled “setReceiver()”setReceiver(
a):void
32 byte address Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setRejectVersion()
Section titled “setRejectVersion()”setRejectVersion(
a):void
Application version for which the txn must reject Min AVM version: 12
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setRekeyTo()
Section titled “setRekeyTo()”setRekeyTo(
a):void
32 byte Sender’s new AuthAddr Min AVM version: 2
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setSelectionPk()
Section titled “setSelectionPk()”setSelectionPk(
a):void
32 byte address Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setSender()
Section titled “setSender()”setSender(
a):void
32 byte address Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setStateProofPk()
Section titled “setStateProofPk()”setStateProofPk(
a):void
State proof public key Min AVM version: 6
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setType()
Section titled “setType()”setType(
a):void
Transaction type as bytes Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setTypeEnum()
Section titled “setTypeEnum()”setTypeEnum(
a):void
Transaction type as integer Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setVoteFirst()
Section titled “setVoteFirst()”setVoteFirst(
a):void
The first round that the participation key is valid. Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setVoteKeyDilution()
Section titled “setVoteKeyDilution()”setVoteKeyDilution(
a):void
Dilution for the 2-level participation key Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setVoteLast()
Section titled “setVoteLast()”setVoteLast(
a):void
The last round that the participation key is valid. Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setVotePk()
Section titled “setVotePk()”setVotePk(
a):void
32 byte address Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
setXferAsset()
Section titled “setXferAsset()”setXferAsset(
a):void
Asset ID Min AVM version: 5
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
submit()
Section titled “submit()”submit():
void
execute the current inner transaction group. Fail if executing this group would exceed the inner transaction limit, or if any transaction in the group fails.
itxn_submit resets the current transaction so that it can not be resubmitted. A new itxn_begin is required to prepare another inner transaction.
Returns
Section titled “Returns”void
Native TEAL opcode: itxn_submit
Min AVM version: 5