Skip to content

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).

optional accessReferences: ResourceReference[]

Defined in: packages/transact/src/transactions/app-call.ts:114

Resources accessed by the application


optional accountReferences: 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.


optional appReferences: 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.


optional approvalProgram: 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.


optional args: 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.


optional assetReferences: 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.


optional boxReferences: BoxReference[]

Defined in: packages/transact/src/transactions/app-call.ts:109

The boxes that should be made available for the runtime of the program.


optional clearStateProgram: 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.


optional extraProgramPages: 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.


optional globalStateSchema: 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.


optional localStateSchema: 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: OnApplicationComplete

Defined in: packages/transact/src/transactions/app-call.ts:34

Defines what additional actions occur with the transaction.


optional rejectVersion: 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.