Skip to content

CommonAppCallParams

CommonAppCallParams = CommonTransactionParams & object

Defined in: algokit-utils-ts/src/types/composer.ts:344

Common parameters for defining an application call transaction.

optional accessReferences?: ResourceReference[]

Access references unifies accountReferences, appReferences, assetReferences, and boxReferences under a single list. If non-empty, these other reference lists must be empty. If access is empty, those other reference lists may be non-empty.

optional accountReferences?: (string | Address)[]

Any account addresses to add to the accounts array.

appId: bigint

ID of the application; 0 if the application is being created.

optional appReferences?: bigint[]

The ID of any apps to load to the foreign apps array.

optional args?: Uint8Array[]

Any arguments to pass to the smart contract call.

optional assetReferences?: bigint[]

The ID of any assets to load to the foreign assets array.

optional boxReferences?: (BoxReference | BoxIdentifier)[]

Any boxes to load to the boxes array.

Either the name identifier (which will be set against app ID of 0 i.e. the current app), or a box identifier with the name identifier and app ID.

optional onComplete?: algosdk.OnApplicationComplete

The on-complete action of the call; defaults to no-op.

optional rejectVersion?: number

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.