AppCallTransactionFields
AppCallTransactionFields =
object
Defined in: packages/transact/src/transactions/app-call.ts:23
Represents an app call transaction that interacts with Algorand Smart Contracts.
App call transactions are used to create, update, delete, opt-in to, close out of, or clear state from Algorand apps (smart contracts).
Properties
Section titled “Properties”accessReferences?
Section titled “accessReferences?”
optionalaccessReferences:ResourceReference[]
Defined in: packages/transact/src/transactions/app-call.ts:114
Resources accessed by the application
accountReferences?
Section titled “accountReferences?”
optionalaccountReferences:Address[]
Defined in: packages/transact/src/transactions/app-call.ts:90
List of accounts in addition to the sender that may be accessed from the app’s approval program and clear state program.
appId:
bigint
Defined in: packages/transact/src/transactions/app-call.ts:29
ID of the app being called.
Set this to 0 to indicate an app creation call.
appReferences?
Section titled “appReferences?”
optionalappReferences:bigint[]
Defined in: packages/transact/src/transactions/app-call.ts:96
List of apps in addition to the current app that may be called from the app’s approval program and clear state program.
approvalProgram?
Section titled “approvalProgram?”
optionalapprovalProgram:Uint8Array
Defined in: packages/transact/src/transactions/app-call.ts:43
Logic executed for every app call transaction, except when on-completion is set to “clear”.
Approval programs may reject the transaction. Only required for app creation and update transactions.
optionalargs:Uint8Array[]
Defined in: packages/transact/src/transactions/app-call.ts:84
Transaction specific arguments available in the app’s approval program and clear state program.
assetReferences?
Section titled “assetReferences?”
optionalassetReferences:bigint[]
Defined in: packages/transact/src/transactions/app-call.ts:104
Lists the assets whose parameters may be accessed by this app’s approval program and clear state program.
The access is read-only.
boxReferences?
Section titled “boxReferences?”
optionalboxReferences:BoxReference[]
Defined in: packages/transact/src/transactions/app-call.ts:109
The boxes that should be made available for the runtime of the program.
clearStateProgram?
Section titled “clearStateProgram?”
optionalclearStateProgram:Uint8Array
Defined in: packages/transact/src/transactions/app-call.ts:51
Logic executed for app call transactions with on-completion set to “clear”.
Clear state programs cannot reject the transaction. Only required for app creation and update transactions.
extraProgramPages?
Section titled “extraProgramPages?”
optionalextraProgramPages:number
Defined in: packages/transact/src/transactions/app-call.ts:78
Number of additional pages allocated to the app’s approval and clear state programs.
Each extra program page is 2048 bytes. The sum of approval program and clear state program may not exceed 2048*(1+extra_program_pages) bytes. Currently, the maximum value is 3. This cannot be changed after creation.
globalStateSchema?
Section titled “globalStateSchema?”
optionalglobalStateSchema:StateSchema
Defined in: packages/transact/src/transactions/app-call.ts:59
Holds the maximum number of global state values.
Only required for app creation transactions. This cannot be changed after creation.
localStateSchema?
Section titled “localStateSchema?”
optionallocalStateSchema:StateSchema
Defined in: packages/transact/src/transactions/app-call.ts:67
Holds the maximum number of local state values.
Only required for app creation transactions. This cannot be changed after creation.
onComplete
Section titled “onComplete”onComplete:
OnApplicationComplete
Defined in: packages/transact/src/transactions/app-call.ts:34
Defines what additional actions occur with the transaction.
rejectVersion?
Section titled “rejectVersion?”
optionalrejectVersion:number
Defined in: packages/transact/src/transactions/app-call.ts:119
If set, the transaction will be rejected when the app’s version is greater than or equal to this value. This can be used to prevent calling an app after it has been updated. Set to 0 or leave undefined to skip the version check.