Skip to content

ITxnCreate

Algorand TypeScript


Algorand TypeScript / op / ITxnCreate

const ITxnCreate: object

Defined in: op.ts:2863

Create inner transactions

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.

void

Native TEAL opcode: itxn_begin Min AVM version: 5

next(): void

begin preparation of a new inner transaction in the same transaction group itxn_next initializes the transaction exactly as itxn_begin does

void

Native TEAL opcode: itxn_next Min AVM version: 6

setAccounts(a): void

Accounts listed in the ApplicationCall transaction Min AVM version: 2

Account

void

setAmount(a): void

microalgos Min AVM version: 5

uint64

void

setApplicationArgs(a): void

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

bytes

void

setApplicationId(a): void

ApplicationID from ApplicationCall transaction Min AVM version: 2

uint64 | Application

void

setApplications(a): void

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

uint64

void

setApprovalProgram(a): void

Approval program Min AVM version: 2

bytes

void

setApprovalProgramPages(a): void

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

bytes

void

setAssetAmount(a): void

value in Asset’s units Min AVM version: 5

uint64

void

setAssetCloseTo(a): void

32 byte address Min AVM version: 5

Account

void

setAssetReceiver(a): void

32 byte address Min AVM version: 5

Account

void

setAssets(a): void

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

uint64

void

setAssetSender(a): void

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

Account

void

setClearStateProgram(a): void

Clear state program Min AVM version: 2

bytes

void

setClearStateProgramPages(a): void

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

bytes

void

setCloseRemainderTo(a): void

32 byte address Min AVM version: 5

Account

void

setConfigAsset(a): void

Asset ID in asset config transaction Min AVM version: 2

uint64 | Asset

void

setConfigAssetClawback(a): void

32 byte address Min AVM version: 2

Account

void

setConfigAssetDecimals(a): void

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

uint64

void

setConfigAssetDefaultFrozen(a): void

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

boolean

void

setConfigAssetFreeze(a): void

32 byte address Min AVM version: 2

Account

void

setConfigAssetManager(a): void

32 byte address Min AVM version: 2

Account

void

setConfigAssetMetadataHash(a): void

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

bytes<32> | bytes

void

setConfigAssetName(a): void

The asset name Min AVM version: 2

bytes

void

setConfigAssetReserve(a): void

32 byte address Min AVM version: 2

Account

void

setConfigAssetTotal(a): void

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

uint64

void

setConfigAssetUnitName(a): void

Unit name of the asset Min AVM version: 2

bytes

void

setConfigAssetUrl(a): void

URL Min AVM version: 2

bytes

void

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

uint64

void

setFee(a): void

microalgos Min AVM version: 5

uint64

void

setFreezeAsset(a): void

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

uint64 | Asset

void

setFreezeAssetAccount(a): void

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

Account

void

setFreezeAssetFrozen(a): void

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

boolean

void

setGlobalNumByteSlice(a): void

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

uint64

void

setGlobalNumUint(a): void

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

uint64

void

setLocalNumByteSlice(a): void

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

uint64

void

setLocalNumUint(a): void

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

uint64

void

setNonparticipation(a): void

Marks an account nonparticipating for rewards Min AVM version: 5

boolean

void

setNote(a): void

Any data up to 1024 bytes Min AVM version: 5

bytes

void

setOnCompletion(a): void

ApplicationCall transaction on completion action Min AVM version: 2

uint64

void

setReceiver(a): void

32 byte address Min AVM version: 5

Account

void

setRejectVersion(a): void

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

uint64

void

setRekeyTo(a): void

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

Account

void

setSelectionPk(a): void

32 byte address Min AVM version: 5

bytes<32> | bytes

void

setSender(a): void

32 byte address Min AVM version: 5

Account

void

setStateProofPk(a): void

State proof public key Min AVM version: 6

bytes | bytes<64>

void

setType(a): void

Transaction type as bytes Min AVM version: 5

bytes

void

setTypeEnum(a): void

Transaction type as integer Min AVM version: 5

uint64

void

setVoteFirst(a): void

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

uint64

void

setVoteKeyDilution(a): void

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

uint64

void

setVoteLast(a): void

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

uint64

void

setVotePk(a): void

32 byte address Min AVM version: 5

bytes<32> | bytes

void

setXferAsset(a): void

Asset ID Min AVM version: 5

uint64 | Asset

void

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.

void

Native TEAL opcode: itxn_submit Min AVM version: 5