Skip to content

CreateAppParams

@algorandfoundation/algokit-utils / types/app / CreateAppParams

types/app.CreateAppParams

Deprecated

Use TransactionComposer to construct create app transactions instead.

Parameters that are passed in when creating an app.

  • CreateOrUpdateAppParams

    CreateAppParams

approvalProgram: string | Uint8Array

The approval program as raw teal (string) or compiled teal, base 64 encoded as a byte array (Uint8Array)

CreateOrUpdateAppParams.approvalProgram

src/types/app.ts:135


Optional args: AppCallArgs

The arguments passed in to the app call

CreateOrUpdateAppParams.args

src/types/app.ts:143


Optional atc: AtomicTransactionComposer

An optional AtomicTransactionComposer to add the transaction to, if specified then skipSending: undefined has the same effect as skipSending: true

CreateOrUpdateAppParams.atc

src/types/transaction.ts:36


clearStateProgram: string | Uint8Array

The clear state program as raw teal (string) or compiled teal, base 64 encoded as a byte array (Uint8Array)

CreateOrUpdateAppParams.clearStateProgram

src/types/app.ts:137


Optional fee: AlgoAmount

The flat fee you want to pay, useful for covering extra fees in a transaction group or app call

CreateOrUpdateAppParams.fee

src/types/transaction.ts:40


from: SendTransactionFrom

The account (with private key loaded) that will send the transaction

CreateOrUpdateAppParams.from

src/types/app.ts:133


Optional maxFee: AlgoAmount

The maximum fee that you are happy to pay (default: unbounded) - if this is set it’s possible the transaction could get rejected during network congestion

CreateOrUpdateAppParams.maxFee

src/types/transaction.ts:42


Optional maxRoundsToWaitForConfirmation: number

The maximum number of rounds to wait for confirmation, only applies if skipWaiting is undefined or false, default: wait up to 5 rounds

CreateOrUpdateAppParams.maxRoundsToWaitForConfirmation

src/types/transaction.ts:44


Optional note: TransactionNote

The (optional) transaction note

CreateOrUpdateAppParams.note

src/types/app.ts:141


Optional onCompleteAction: "no_op" | "opt_in" | "close_out" | "update_application" | "delete_application" | NoOpOC | OptInOC | CloseOutOC | UpdateApplicationOC | DeleteApplicationOC

Override the on-completion action for the create call; defaults to NoOp

src/types/app.ts:154


Optional populateAppCallResources: boolean

Whether to use simulate to automatically populate app call resources in the txn objects. Defaults to true when there are app calls in the group.

CreateOrUpdateAppParams.populateAppCallResources

src/types/transaction.ts:46


schema: AppStorageSchema

The storage schema to request for the created app

src/types/app.ts:152


Optional skipSending: boolean

Whether to skip signing and sending the transaction to the chain (default: transaction signed and sent to chain, unless atc specified) and instead just return the raw transaction, e.g. so you can add it to a group of transactions

CreateOrUpdateAppParams.skipSending

src/types/transaction.ts:32


Optional skipWaiting: boolean

Whether to skip waiting for the submitted transaction (only relevant if skipSending is false or unset)

CreateOrUpdateAppParams.skipWaiting

src/types/transaction.ts:34


Optional suppressLog: boolean

Whether to suppress log messages from transaction send, default: do not suppress

CreateOrUpdateAppParams.suppressLog

src/types/transaction.ts:38


Optional transactionParams: SuggestedParams

Optional transaction parameters

CreateOrUpdateAppParams.transactionParams

src/types/app.ts:139