AppClient
@algorandfoundation/algokit-utils / types/app-client / AppClient
types/app-client.AppClient
ARC-56/ARC-32 application client that allows you to manage calls and state for a specific deployed instance of an app (with a known app ID).
Table of contents
Constructors
Properties
- _algorand
- _appAddress
- _appId
- _appName
- _appSpec
- _approvalSourceMap
- _boxStateMethods
- _clearSourceMap
- _createTransactionsMethods
- _defaultSender
- _defaultSigner
- _globalStateMethods
- _lastCompiled
- _localStateMethods
- _paramsMethods
- _sendMethods
Accessors
Methods
- clone
- compile
- exportSourceMaps
- exposeLogicError
- fundAppAccount
- getABIArgsWithDefaultValues
- getABIMethod
- getABIParams
- getBareCreateTransactionMethods
- getBareParams
- getBareParamsMethods
- getBareSendMethods
- getBoxMethods
- getBoxNames
- getBoxValue
- getBoxValueFromABIType
- getBoxValues
- getBoxValuesFromABIType
- getGlobalState
- getLocalState
- getMethodCallCreateTransactionMethods
- getMethodCallParamsMethods
- getMethodCallSendMethods
- getSender
- getSigner
- getStateMethods
- handleCallErrors
- importSourceMaps
- processMethodCallReturn
- compile
- exposeLogicError
- fromCreatorAndName
- fromNetwork
- normaliseAppSpec
Constructors
constructor
• new AppClient(params
): AppClient
Create a new app client.
Parameters
Name | Type | Description |
---|---|---|
params | AppClientParams | The parameters to create the app client |
Returns
The AppClient
instance
Example
const appClient = new AppClient({ appId: 12345678n, appSpec: appSpec, algorand: AlgorandClient.mainNet(),})
#### Defined in
[src/types/app-client.ts:517](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L517)
## Properties
### \_algorand
• `Private` **\_algorand**: [`AlgorandClient`](types_algorand_client.AlgorandClient.md)
#### Defined in
[src/types/app-client.ts:483](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L483)
___
### \_appAddress
• `Private` **\_appAddress**: `Address`
#### Defined in
[src/types/app-client.ts:480](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L480)
___
### \_appId
• `Private` **\_appId**: `bigint`
#### Defined in
[src/types/app-client.ts:479](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L479)
___
### \_appName
• `Private` **\_appName**: `string`
#### Defined in
[src/types/app-client.ts:481](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L481)
___
### \_appSpec
• `Private` **\_appSpec**: [`Arc56Contract`](/reference/algokit-utils-ts/api/interfaces/types_app_arc56arc56contract/)
#### Defined in
[src/types/app-client.ts:482](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L482)
___
### \_approvalSourceMap
• `Private` **\_approvalSourceMap**: `undefined` \| `ProgramSourceMap`
#### Defined in
[src/types/app-client.ts:487](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L487)
___
### \_boxStateMethods
• `Private` **\_boxStateMethods**: `Object`
#### Type declaration
| Name | Type | Description || :------ | :------ | :------ || `getAll` | () => `Promise`\<`Record`\<`string`, `any`\>\> | - || `getMap` | (`mapName`: `string`) => `Promise`\<`Map`\<`ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct), `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\>\> | - || `getMapValue` | (`mapName`: `string`, `key`: `any`) => `Promise`\<`ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\> | - || `getValue` | (`name`: `string`) => `Promise`\<`ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\> | - |
#### Defined in
[src/types/app-client.ts:492](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L492)
___
### \_clearSourceMap
• `Private` **\_clearSourceMap**: `undefined` \| `ProgramSourceMap`
#### Defined in
[src/types/app-client.ts:488](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L488)
___
### \_createTransactionsMethods
• `Private` **\_createTransactionsMethods**: \{ `call`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete)) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> ; `closeOut`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> ; `delete`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> ; `fundAppAccount`: (`params`: \{ `amount`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `closeRemainderTo?`: `string` \| `Address` ; `coverAppCallInnerTransactionFees?`: `boolean` ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `maxRoundsToWaitForConfirmation?`: `number` ; `note?`: `string` \| `Uint8Array` ; `populateAppCallResources?`: `boolean` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `suppressLog?`: `boolean` ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `optIn`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> ; `update`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/)) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> } & \{ `bare`: \{ `call`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete)) => `Promise`\<`Transaction`\> ; `clearState`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `closeOut`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `delete`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `optIn`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `update`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/)) => `Promise`\<`Transaction`\> } }
#### Defined in
[src/types/app-client.ts:497](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L497)
___
### \_defaultSender
• `Private` `Optional` **\_defaultSender**: `Address`
#### Defined in
[src/types/app-client.ts:484](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L484)
___
### \_defaultSigner
• `Private` `Optional` **\_defaultSigner**: `TransactionSigner`
#### Defined in
[src/types/app-client.ts:485](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L485)
___
### \_globalStateMethods
• `Private` **\_globalStateMethods**: `Object`
#### Type declaration
| Name | Type | Description || :------ | :------ | :------ || `getAll` | () => `Promise`\<`Record`\<`string`, `any`\>\> | - || `getMap` | (`mapName`: `string`) => `Promise`\<`Map`\<`ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct), `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\>\> | - || `getMapValue` | (`mapName`: `string`, `key`: `any`, `appState?`: [`AppState`](/reference/algokit-utils-ts/api/interfaces/types_appappstate/)) => `Promise`\<`undefined` \| `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\> | - || `getValue` | (`name`: `string`, `appState?`: [`AppState`](/reference/algokit-utils-ts/api/interfaces/types_appappstate/)) => `Promise`\<`undefined` \| `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\> | - |
#### Defined in
[src/types/app-client.ts:491](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L491)
___
### \_lastCompiled
• `Private` **\_lastCompiled**: `Object`
#### Type declaration
| Name | Type || :------ | :------ || `approval?` | `Uint8Array` || `clear?` | `Uint8Array` |
#### Defined in
[src/types/app-client.ts:503](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L503)
___
### \_localStateMethods
• `Private` **\_localStateMethods**: (`address`: `string` \| `Address`) => \{ `getAll`: () => `Promise`\<`Record`\<`string`, `any`\>\> ; `getMap`: (`mapName`: `string`) => `Promise`\<`Map`\<`ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct), `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\>\> ; `getMapValue`: (`mapName`: `string`, `key`: `any`, `appState?`: [`AppState`](/reference/algokit-utils-ts/api/interfaces/types_appappstate/)) => `Promise`\<`undefined` \| `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\> ; `getValue`: (`name`: `string`, `appState?`: [`AppState`](/reference/algokit-utils-ts/api/interfaces/types_appappstate/)) => `Promise`\<`undefined` \| `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\> }
#### Type declaration
▸ (`address`): `Object`
##### Parameters
| Name | Type || :------ | :------ || `address` | `string` \| `Address` |
##### Returns
`Object`
| Name | Type | Description || :------ | :------ | :------ || `getAll` | () => `Promise`\<`Record`\<`string`, `any`\>\> | - || `getMap` | (`mapName`: `string`) => `Promise`\<`Map`\<`ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct), `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\>\> | - || `getMapValue` | (`mapName`: `string`, `key`: `any`, `appState?`: [`AppState`](/reference/algokit-utils-ts/api/interfaces/types_appappstate/)) => `Promise`\<`undefined` \| `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\> | - || `getValue` | (`name`: `string`, `appState?`: [`AppState`](/reference/algokit-utils-ts/api/interfaces/types_appappstate/)) => `Promise`\<`undefined` \| `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\> | - |
#### Defined in
[src/types/app-client.ts:490](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L490)
___
### \_paramsMethods
• `Private` **\_paramsMethods**: \{ `call`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete)) => `Promise`\<[`AppCallMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallmethodcall)\> ; `closeOut`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<[`AppCallMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallmethodcall)\> ; `delete`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<[`AppDeleteMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appdeletemethodcall)\> ; `fundAppAccount`: (`params`: \{ `amount`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `closeRemainderTo?`: `string` \| `Address` ; `coverAppCallInnerTransactionFees?`: `boolean` ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `maxRoundsToWaitForConfirmation?`: `number` ; `note?`: `string` \| `Uint8Array` ; `populateAppCallResources?`: `boolean` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `suppressLog?`: `boolean` ; `validityWindow?`: `number` \| `bigint` }) => \{ `amount`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `closeRemainderTo?`: `string` \| `Address` ; `coverAppCallInnerTransactionFees?`: `boolean` ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `maxRoundsToWaitForConfirmation?`: `number` ; `note?`: `string` \| `Uint8Array` ; `populateAppCallResources?`: `boolean` ; `receiver`: `Address` ; `rekeyTo?`: `string` \| `Address` ; `sender`: `Address` ; `signer`: `undefined` \| `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `suppressLog?`: `boolean` ; `validityWindow?`: `number` \| `bigint` } ; `optIn`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<[`AppCallMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallmethodcall)\> ; `update`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/)) => `Promise`\<\{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `approvalProgram`: `Uint8Array` ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `clearStateProgram`: `Uint8Array` ; `compiledApproval?`: [`CompiledTeal`](/reference/algokit-utils-ts/api/interfaces/types_appcompiledteal/) ; `compiledClear?`: [`CompiledTeal`](/reference/algokit-utils-ts/api/interfaces/types_appcompiledteal/) ; `deletable?`: `boolean` ; `deployTimeParams?`: [`TealTemplateParams`](/reference/algokit-utils-ts/api/interfaces/types_apptealtemplateparams/) ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `updatable?`: `boolean` ; `validityWindow?`: `number` \| `bigint` } & \{ `appId`: `bigint` ; `args`: `undefined` \| (`undefined` \| `Transaction` \| `ABIValue` \| `TransactionWithSigner` \| `Promise`\<`Transaction`\> \| [`AppMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcall)\<\{ `accountReferences?`: ... ; `appReferences?`: ... ; `approvalProgram`: ... ; `args?`: ... ; `assetReferences?`: ... ; `boxReferences?`: ... ; `clearStateProgram`: ... ; `extraFee?`: ... ; `extraProgramPages?`: ... ; `firstValidRound?`: ... ; `lastValidRound?`: ... ; `lease?`: ... ; `maxFee?`: ... ; `note?`: ... ; `onComplete?`: ... ; `rekeyTo?`: ... ; `schema?`: ... ; `sender`: ... ; `signer?`: ... ; `staticFee?`: ... ; `validityWindow?`: ... }\> \| [`AppMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcall)\<\{ `accountReferences?`: ... ; `appId`: ... ; `appReferences?`: ... ; `approvalProgram`: ... ; `args?`: ... ; `assetReferences?`: ... ; `boxReferences?`: ... ; `clearStateProgram`: ... ; `extraFee?`: ... ; `firstValidRound?`: ... ; `lastValidRound?`: ... ; `lease?`: ... ; `maxFee?`: ... ; `note?`: ... ; `onComplete?`: ... ; `rekeyTo?`: ... ; `sender`: ... ; `signer?`: ... ; `staticFee?`: ... ; `validityWindow?`: ... }\> \| [`AppMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcall)\<[`AppMethodCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcallparams)\>)[] ; `method`: [`Arc56Method`](types_app_arc56.Arc56Method.md) ; `onComplete`: `UpdateApplicationOC` ; `sender`: `Address` = sender; `signer`: `undefined` \| `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) }\> } & \{ `bare`: \{ `call`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete)) => [`AppCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallparams) ; `clearState`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => [`AppCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallparams) ; `closeOut`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => [`AppCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallparams) ; `delete`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => [`AppDeleteParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appdeleteparams) ; `optIn`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => [`AppCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallparams) ; `update`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/)) => `Promise`\<\{ `accountReferences?`: (`string` \| `Address`)[] ; `appId`: `bigint` ; `appReferences?`: `bigint`[] ; `approvalProgram`: `string` \| `Uint8Array` ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `clearStateProgram`: `string` \| `Uint8Array` ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `UpdateApplicationOC` ; `rekeyTo?`: `string` \| `Address` ; `sender`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }\> } }
#### Defined in
[src/types/app-client.ts:494](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L494)
___
### \_sendMethods
• `Private` **\_sendMethods**: \{ `call`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete) & [`SendParams`](/reference/algokit-utils-ts/api/interfaces/types_transactionsendparams/)) => `Promise`\<`Omit`\<\{ `confirmation`: `PendingTransactionResponse` ; `confirmations`: `PendingTransactionResponse`[] ; `groupId`: `string` ; `return?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn) ; `returns?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn)[] ; `transaction`: `Transaction` ; `transactions`: `Transaction`[] ; `txIds`: `string`[] }, ``"return"``\> & [`AppReturn`](/reference/algokit-utils-ts/api/modules/types_app/#appreturn)\<`undefined` \| `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\>\> ; `closeOut`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`SendParams`](/reference/algokit-utils-ts/api/interfaces/types_transactionsendparams/)) => `Promise`\<`Omit`\<\{ `confirmation`: `PendingTransactionResponse` ; `confirmations`: `PendingTransactionResponse`[] ; `groupId`: `string` ; `return?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn) ; `returns?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn)[] ; `transaction`: `Transaction` ; `transactions`: `Transaction`[] ; `txIds`: `string`[] }, ``"return"``\> & [`AppReturn`](/reference/algokit-utils-ts/api/modules/types_app/#appreturn)\<`undefined` \| `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\>\> ; `delete`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`SendParams`](/reference/algokit-utils-ts/api/interfaces/types_transactionsendparams/)) => `Promise`\<`Omit`\<\{ `confirmation`: `PendingTransactionResponse` ; `confirmations`: `PendingTransactionResponse`[] ; `groupId`: `string` ; `return?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn) ; `returns?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn)[] ; `transaction`: `Transaction` ; `transactions`: `Transaction`[] ; `txIds`: `string`[] }, ``"return"``\> & [`AppReturn`](/reference/algokit-utils-ts/api/modules/types_app/#appreturn)\<`undefined` \| `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\>\> ; `fundAppAccount`: (`params`: \{ `amount`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `closeRemainderTo?`: `string` \| `Address` ; `coverAppCallInnerTransactionFees?`: `boolean` ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `maxRoundsToWaitForConfirmation?`: `number` ; `note?`: `string` \| `Uint8Array` ; `populateAppCallResources?`: `boolean` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `suppressLog?`: `boolean` ; `validityWindow?`: `number` \| `bigint` } & [`SendParams`](/reference/algokit-utils-ts/api/interfaces/types_transactionsendparams/)) => `Promise`\<\{ `confirmation`: `PendingTransactionResponse` ; `confirmations`: `PendingTransactionResponse`[] ; `groupId`: `string` ; `returns?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn)[] ; `transaction`: `Transaction` ; `transactions`: `Transaction`[] ; `txIds`: `string`[] }\> ; `optIn`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`SendParams`](/reference/algokit-utils-ts/api/interfaces/types_transactionsendparams/)) => `Promise`\<`Omit`\<\{ `confirmation`: `PendingTransactionResponse` ; `confirmations`: `PendingTransactionResponse`[] ; `groupId`: `string` ; `return?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn) ; `returns?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn)[] ; `transaction`: `Transaction` ; `transactions`: `Transaction`[] ; `txIds`: `string`[] }, ``"return"``\> & [`AppReturn`](/reference/algokit-utils-ts/api/modules/types_app/#appreturn)\<`undefined` \| `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct)\>\> ; `update`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/) & [`SendParams`](/reference/algokit-utils-ts/api/interfaces/types_transactionsendparams/)) => `Promise`\<\{ `compiledApproval?`: [`CompiledTeal`](/reference/algokit-utils-ts/api/interfaces/types_appcompiledteal/) ; `compiledClear?`: [`CompiledTeal`](/reference/algokit-utils-ts/api/interfaces/types_appcompiledteal/) ; `confirmation`: `PendingTransactionResponse` ; `confirmations`: `PendingTransactionResponse`[] ; `groupId`: `string` ; `return?`: `ABIValue` \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct) ; `returns?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn)[] ; `transaction`: `Transaction` ; `transactions`: `Transaction`[] ; `txIds`: `string`[] }\> } & \{ `bare`: \{ `call`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete) & [`SendParams`](/reference/algokit-utils-ts/api/interfaces/types_transactionsendparams/)) => `Promise`\<\{ `confirmation`: `PendingTransactionResponse` ; `confirmations`: `PendingTransactionResponse`[] ; `groupId`: `string` ; `return?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn) ; `returns?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn)[] ; `transaction`: `Transaction` ; `transactions`: `Transaction`[] ; `txIds`: `string`[] }\> ; `clearState`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`SendParams`](/reference/algokit-utils-ts/api/interfaces/types_transactionsendparams/)) => `Promise`\<\{ `confirmation`: `PendingTransactionResponse` ; `confirmations`: `PendingTransactionResponse`[] ; `groupId`: `string` ; `return?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn) ; `returns?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn)[] ; `transaction`: `Transaction` ; `transactions`: `Transaction`[] ; `txIds`: `string`[] }\> ; `closeOut`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`SendParams`](/reference/algokit-utils-ts/api/interfaces/types_transactionsendparams/)) => `Promise`\<\{ `confirmation`: `PendingTransactionResponse` ; `confirmations`: `PendingTransactionResponse`[] ; `groupId`: `string` ; `return?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn) ; `returns?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn)[] ; `transaction`: `Transaction` ; `transactions`: `Transaction`[] ; `txIds`: `string`[] }\> ; `delete`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`SendParams`](/reference/algokit-utils-ts/api/interfaces/types_transactionsendparams/)) => `Promise`\<\{ `confirmation`: `PendingTransactionResponse` ; `confirmations`: `PendingTransactionResponse`[] ; `groupId`: `string` ; `return?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn) ; `returns?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn)[] ; `transaction`: `Transaction` ; `transactions`: `Transaction`[] ; `txIds`: `string`[] }\> ; `optIn`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`SendParams`](/reference/algokit-utils-ts/api/interfaces/types_transactionsendparams/)) => `Promise`\<\{ `confirmation`: `PendingTransactionResponse` ; `confirmations`: `PendingTransactionResponse`[] ; `groupId`: `string` ; `return?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn) ; `returns?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn)[] ; `transaction`: `Transaction` ; `transactions`: `Transaction`[] ; `txIds`: `string`[] }\> ; `update`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/) & [`SendParams`](/reference/algokit-utils-ts/api/interfaces/types_transactionsendparams/)) => `Promise`\<\{ `compiledApproval?`: [`CompiledTeal`](/reference/algokit-utils-ts/api/interfaces/types_appcompiledteal/) ; `compiledClear?`: [`CompiledTeal`](/reference/algokit-utils-ts/api/interfaces/types_appcompiledteal/) ; `confirmation`: `PendingTransactionResponse` ; `confirmations`: `PendingTransactionResponse`[] ; `groupId`: `string` ; `return?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn) ; `returns?`: [`ABIReturn`](/reference/algokit-utils-ts/api/modules/types_app/#abireturn)[] ; `transaction`: `Transaction` ; `transactions`: `Transaction`[] ; `txIds`: `string`[] }\> } }
#### Defined in
[src/types/app-client.ts:500](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L500)
## Accessors
### algorand
• `get` **algorand**(): [`AlgorandClient`](types_algorand_client.AlgorandClient.md)
A reference to the underlying `AlgorandClient` this app client is using.
#### Returns
[`AlgorandClient`](types_algorand_client.AlgorandClient.md)
#### Defined in
[src/types/app-client.ts:684](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L684)
___
### appAddress
• `get` **appAddress**(): `Address`
The app address of the app instance this client is linked to.
#### Returns
`Address`
#### Defined in
[src/types/app-client.ts:669](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L669)
___
### appId
• `get` **appId**(): `bigint`
The ID of the app instance this client is linked to.
#### Returns
`bigint`
#### Defined in
[src/types/app-client.ts:664](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L664)
___
### appName
• `get` **appName**(): `string`
The name of the app (from the ARC-32 / ARC-56 app spec or override).
#### Returns
`string`
#### Defined in
[src/types/app-client.ts:674](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L674)
___
### appSpec
• `get` **appSpec**(): [`Arc56Contract`](/reference/algokit-utils-ts/api/interfaces/types_app_arc56arc56contract/)
The ARC-56 app spec being used
#### Returns
[`Arc56Contract`](/reference/algokit-utils-ts/api/interfaces/types_app_arc56arc56contract/)
#### Defined in
[src/types/app-client.ts:679](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L679)
___
### createTransaction
• `get` **createTransaction**(): \{ `call`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete)) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> ; `closeOut`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> ; `delete`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> ; `fundAppAccount`: (`params`: \{ `amount`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `closeRemainderTo?`: `string` \| `Address` ; `coverAppCallInnerTransactionFees?`: `boolean` ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `maxRoundsToWaitForConfirmation?`: `number` ; `note?`: `string` \| `Uint8Array` ; `populateAppCallResources?`: `boolean` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `suppressLog?`: `boolean` ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `optIn`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> ; `update`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/)) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> } & \{ `bare`: \{ `call`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete)) => `Promise`\<`Transaction`\> ; `clearState`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `closeOut`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `delete`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `optIn`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `update`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/)) => `Promise`\<`Transaction`\> } }
Create transactions for the current app
#### Returns
\{ `call`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete)) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> ; `closeOut`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> ; `delete`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> ; `fundAppAccount`: (`params`: \{ `amount`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `closeRemainderTo?`: `string` \| `Address` ; `coverAppCallInnerTransactionFees?`: `boolean` ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `maxRoundsToWaitForConfirmation?`: `number` ; `note?`: `string` \| `Uint8Array` ; `populateAppCallResources?`: `boolean` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `suppressLog?`: `boolean` ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `optIn`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> ; `update`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/)) => `Promise`\<\{ `methodCalls`: `Map`\<`number`, `ABIMethod`\> ; `signers`: `Map`\<`number`, `TransactionSigner`\> ; `transactions`: `Transaction`[] }\> } & \{ `bare`: \{ `call`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete)) => `Promise`\<`Transaction`\> ; `clearState`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `closeOut`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `delete`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `optIn`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<`Transaction`\> ; `update`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/)) => `Promise`\<`Transaction`\> } }
#### Defined in
[src/types/app-client.ts:708](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L708)
___
### params
• `get` **params**(): \{ `call`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete)) => `Promise`\<[`AppCallMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallmethodcall)\> ; `closeOut`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<[`AppCallMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallmethodcall)\> ; `delete`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<[`AppDeleteMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appdeletemethodcall)\> ; `fundAppAccount`: (`params`: \{ `amount`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `closeRemainderTo?`: `string` \| `Address` ; `coverAppCallInnerTransactionFees?`: `boolean` ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `maxRoundsToWaitForConfirmation?`: `number` ; `note?`: `string` \| `Uint8Array` ; `populateAppCallResources?`: `boolean` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `suppressLog?`: `boolean` ; `validityWindow?`: `number` \| `bigint` }) => \{ `amount`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `closeRemainderTo?`: `string` \| `Address` ; `coverAppCallInnerTransactionFees?`: `boolean` ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `maxRoundsToWaitForConfirmation?`: `number` ; `note?`: `string` \| `Uint8Array` ; `populateAppCallResources?`: `boolean` ; `receiver`: `Address` ; `rekeyTo?`: `string` \| `Address` ; `sender`: `Address` ; `signer`: `undefined` \| `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `suppressLog?`: `boolean` ; `validityWindow?`: `number` \| `bigint` } ; `optIn`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<[`AppCallMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallmethodcall)\> ; `update`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/)) => `Promise`\<\{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `approvalProgram`: `Uint8Array` ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `clearStateProgram`: `Uint8Array` ; `compiledApproval?`: [`CompiledTeal`](/reference/algokit-utils-ts/api/interfaces/types_appcompiledteal/) ; `compiledClear?`: [`CompiledTeal`](/reference/algokit-utils-ts/api/interfaces/types_appcompiledteal/) ; `deletable?`: `boolean` ; `deployTimeParams?`: [`TealTemplateParams`](/reference/algokit-utils-ts/api/interfaces/types_apptealtemplateparams/) ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `updatable?`: `boolean` ; `validityWindow?`: `number` \| `bigint` } & \{ `appId`: `bigint` ; `args`: `undefined` \| (`undefined` \| `Transaction` \| `ABIValue` \| `TransactionWithSigner` \| `Promise`\<`Transaction`\> \| [`AppMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcall)\<\{ `accountReferences?`: ... ; `appReferences?`: ... ; `approvalProgram`: ... ; `args?`: ... ; `assetReferences?`: ... ; `boxReferences?`: ... ; `clearStateProgram`: ... ; `extraFee?`: ... ; `extraProgramPages?`: ... ; `firstValidRound?`: ... ; `lastValidRound?`: ... ; `lease?`: ... ; `maxFee?`: ... ; `note?`: ... ; `onComplete?`: ... ; `rekeyTo?`: ... ; `schema?`: ... ; `sender`: ... ; `signer?`: ... ; `staticFee?`: ... ; `validityWindow?`: ... }\> \| [`AppMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcall)\<\{ `accountReferences?`: ... ; `appId`: ... ; `appReferences?`: ... ; `approvalProgram`: ... ; `args?`: ... ; `assetReferences?`: ... ; `boxReferences?`: ... ; `clearStateProgram`: ... ; `extraFee?`: ... ; `firstValidRound?`: ... ; `lastValidRound?`: ... ; `lease?`: ... ; `maxFee?`: ... ; `note?`: ... ; `onComplete?`: ... ; `rekeyTo?`: ... ; `sender`: ... ; `signer?`: ... ; `staticFee?`: ... ; `validityWindow?`: ... }\> \| [`AppMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcall)\<[`AppMethodCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcallparams)\>)[] ; `method`: [`Arc56Method`](types_app_arc56.Arc56Method.md) ; `onComplete`: `UpdateApplicationOC` ; `sender`: `Address` = sender; `signer`: `undefined` \| `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) }\> } & \{ `bare`: \{ `call`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete)) => [`AppCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallparams) ; `clearState`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => [`AppCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallparams) ; `closeOut`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => [`AppCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallparams) ; `delete`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => [`AppDeleteParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appdeleteparams) ; `optIn`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => [`AppCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallparams) ; `update`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/)) => `Promise`\<\{ `accountReferences?`: (`string` \| `Address`)[] ; `appId`: `bigint` ; `appReferences?`: `bigint`[] ; `approvalProgram`: `string` \| `Uint8Array` ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `clearStateProgram`: `string` \| `Uint8Array` ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `UpdateApplicationOC` ; `rekeyTo?`: `string` \| `Address` ; `sender`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }\> } }
Get parameters to create transactions for the current app.
A good mental model for this is that these parameters represent a deferred transaction creation.
#### Returns
\{ `call`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete)) => `Promise`\<[`AppCallMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallmethodcall)\> ; `closeOut`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<[`AppCallMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallmethodcall)\> ; `delete`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<[`AppDeleteMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appdeletemethodcall)\> ; `fundAppAccount`: (`params`: \{ `amount`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `closeRemainderTo?`: `string` \| `Address` ; `coverAppCallInnerTransactionFees?`: `boolean` ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `maxRoundsToWaitForConfirmation?`: `number` ; `note?`: `string` \| `Uint8Array` ; `populateAppCallResources?`: `boolean` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `suppressLog?`: `boolean` ; `validityWindow?`: `number` \| `bigint` }) => \{ `amount`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `closeRemainderTo?`: `string` \| `Address` ; `coverAppCallInnerTransactionFees?`: `boolean` ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `maxRoundsToWaitForConfirmation?`: `number` ; `note?`: `string` \| `Uint8Array` ; `populateAppCallResources?`: `boolean` ; `receiver`: `Address` ; `rekeyTo?`: `string` \| `Address` ; `sender`: `Address` ; `signer`: `undefined` \| `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `suppressLog?`: `boolean` ; `validityWindow?`: `number` \| `bigint` } ; `optIn`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => `Promise`\<[`AppCallMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallmethodcall)\> ; `update`: (`params`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/)) => `Promise`\<\{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `approvalProgram`: `Uint8Array` ; `args?`: (`undefined` \| `ABIValue` \| [`AppMethodCallTransactionArgument`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcalltransactionargument) \| [`ABIStruct`](/reference/algokit-utils-ts/api/modules/types_app_arc56/#abistruct))[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `clearStateProgram`: `Uint8Array` ; `compiledApproval?`: [`CompiledTeal`](/reference/algokit-utils-ts/api/interfaces/types_appcompiledteal/) ; `compiledClear?`: [`CompiledTeal`](/reference/algokit-utils-ts/api/interfaces/types_appcompiledteal/) ; `deletable?`: `boolean` ; `deployTimeParams?`: [`TealTemplateParams`](/reference/algokit-utils-ts/api/interfaces/types_apptealtemplateparams/) ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `method`: `string` ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `OnApplicationComplete` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `updatable?`: `boolean` ; `validityWindow?`: `number` \| `bigint` } & \{ `appId`: `bigint` ; `args`: `undefined` \| (`undefined` \| `Transaction` \| `ABIValue` \| `TransactionWithSigner` \| `Promise`\<`Transaction`\> \| [`AppMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcall)\<\{ `accountReferences?`: ... ; `appReferences?`: ... ; `approvalProgram`: ... ; `args?`: ... ; `assetReferences?`: ... ; `boxReferences?`: ... ; `clearStateProgram`: ... ; `extraFee?`: ... ; `extraProgramPages?`: ... ; `firstValidRound?`: ... ; `lastValidRound?`: ... ; `lease?`: ... ; `maxFee?`: ... ; `note?`: ... ; `onComplete?`: ... ; `rekeyTo?`: ... ; `schema?`: ... ; `sender`: ... ; `signer?`: ... ; `staticFee?`: ... ; `validityWindow?`: ... }\> \| [`AppMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcall)\<\{ `accountReferences?`: ... ; `appId`: ... ; `appReferences?`: ... ; `approvalProgram`: ... ; `args?`: ... ; `assetReferences?`: ... ; `boxReferences?`: ... ; `clearStateProgram`: ... ; `extraFee?`: ... ; `firstValidRound?`: ... ; `lastValidRound?`: ... ; `lease?`: ... ; `maxFee?`: ... ; `note?`: ... ; `onComplete?`: ... ; `rekeyTo?`: ... ; `sender`: ... ; `signer?`: ... ; `staticFee?`: ... ; `validityWindow?`: ... }\> \| [`AppMethodCall`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcall)\<[`AppMethodCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appmethodcallparams)\>)[] ; `method`: [`Arc56Method`](types_app_arc56.Arc56Method.md) ; `onComplete`: `UpdateApplicationOC` ; `sender`: `Address` = sender; `signer`: `undefined` \| `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) }\> } & \{ `bare`: \{ `call`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`CallOnComplete`](/reference/algokit-utils-ts/api/modules/types_app_client/#calloncomplete)) => [`AppCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallparams) ; `clearState`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => [`AppCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallparams) ; `closeOut`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => [`AppCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallparams) ; `delete`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => [`AppDeleteParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appdeleteparams) ; `optIn`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }) => [`AppCallParams`](/reference/algokit-utils-ts/api/modules/types_composer/#appcallparams) ; `update`: (`params?`: \{ `accountReferences?`: (`string` \| `Address`)[] ; `appReferences?`: `bigint`[] ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `rekeyTo?`: `string` \| `Address` ; `sender?`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` } & [`AppClientCompilationParams`](/reference/algokit-utils-ts/api/interfaces/types_app_clientappclientcompilationparams/)) => `Promise`\<\{ `accountReferences?`: (`string` \| `Address`)[] ; `appId`: `bigint` ; `appReferences?`: `bigint`[] ; `approvalProgram`: `string` \| `Uint8Array` ; `args?`: `Uint8Array`[] ; `assetReferences?`: `bigint`[] ; `boxReferences?`: ([`BoxIdentifier`](/reference/algokit-utils-ts/api/modules/types_app_manager/#boxidentifier) \| [`BoxReference`](/reference/algokit-utils-ts/api/interfaces/types_app_managerboxreference/))[] ; `clearStateProgram`: `string` \| `Uint8Array` ; `extraFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `firstValidRound?`: `bigint` ; `lastValidRound?`: `bigint` ; `lease?`: `string` \| `Uint8Array` ; `maxFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `note?`: `string` \| `Uint8Array` ; `onComplete?`: `UpdateApplicationOC` ; `rekeyTo?`: `string` \| `Address` ; `sender`: `string` \| `Address` ; `signer?`: `TransactionSigner` \| [`TransactionSignerAccount`](/reference/algokit-utils-ts/api/interfaces/types_accounttransactionsigneraccount/) ; `staticFee?`: [`AlgoAmount`](types_amount.AlgoAmount.md) ; `validityWindow?`: `number` \| `bigint` }\> } }
**`Example`**
```typescriptconst myMethodCall = appClient.params.call({method: 'my_method', args: [123, 'hello']})// ...await algorand.send.AppMethodCall(myMethodCall)
Example
const myMethodCall = appClient.params.call({ method: 'my_method', args: [123, 'hello'] });await appClient.send.call({ method: 'my_method2', args: [myMethodCall] });
Defined in
send
• get
send(): { call
: (params
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: (undefined
| ABIValue
| AppMethodCallTransactionArgument
| ABIStruct
)[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; method
: string
; note?
: string
| Uint8Array
; onComplete?
: OnApplicationComplete
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & CallOnComplete
& SendParams
) => Promise
<Omit
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }, "return"
> & AppReturn
<undefined
| ABIValue
| ABIStruct
>> ; closeOut
: (params
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: (undefined
| ABIValue
| AppMethodCallTransactionArgument
| ABIStruct
)[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; method
: string
; note?
: string
| Uint8Array
; onComplete?
: OnApplicationComplete
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<Omit
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }, "return"
> & AppReturn
<undefined
| ABIValue
| ABIStruct
>> ; delete
: (params
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: (undefined
| ABIValue
| AppMethodCallTransactionArgument
| ABIStruct
)[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; method
: string
; note?
: string
| Uint8Array
; onComplete?
: OnApplicationComplete
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<Omit
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }, "return"
> & AppReturn
<undefined
| ABIValue
| ABIStruct
>> ; fundAppAccount
: (params
: { amount
: AlgoAmount
; closeRemainderTo?
: string
| Address
; coverAppCallInnerTransactionFees?
: boolean
; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; maxRoundsToWaitForConfirmation?
: number
; note?
: string
| Uint8Array
; populateAppCallResources?
: boolean
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; suppressLog?
: boolean
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> ; optIn
: (params
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: (undefined
| ABIValue
| AppMethodCallTransactionArgument
| ABIStruct
)[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; method
: string
; note?
: string
| Uint8Array
; onComplete?
: OnApplicationComplete
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<Omit
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }, "return"
> & AppReturn
<undefined
| ABIValue
| ABIStruct
>> ; update
: (params
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: (undefined
| ABIValue
| AppMethodCallTransactionArgument
| ABIStruct
)[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; method
: string
; note?
: string
| Uint8Array
; onComplete?
: OnApplicationComplete
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & AppClientCompilationParams
& SendParams
) => Promise
<{ compiledApproval?
: CompiledTeal
; compiledClear?
: CompiledTeal
; confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIValue
| ABIStruct
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> } & { bare
: { call
: (params?
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & CallOnComplete
& SendParams
) => Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> ; clearState
: (params?
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> ; closeOut
: (params?
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> ; delete
: (params?
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> ; optIn
: (params?
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> ; update
: (params?
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & AppClientCompilationParams
& SendParams
) => Promise
<{ compiledApproval?
: CompiledTeal
; compiledClear?
: CompiledTeal
; confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> } }
Send transactions to the current app
Returns
{ call
: (params
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: (undefined
| ABIValue
| AppMethodCallTransactionArgument
| ABIStruct
)[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; method
: string
; note?
: string
| Uint8Array
; onComplete?
: OnApplicationComplete
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & CallOnComplete
& SendParams
) => Promise
<Omit
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }, "return"
> & AppReturn
<undefined
| ABIValue
| ABIStruct
>> ; closeOut
: (params
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: (undefined
| ABIValue
| AppMethodCallTransactionArgument
| ABIStruct
)[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; method
: string
; note?
: string
| Uint8Array
; onComplete?
: OnApplicationComplete
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<Omit
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }, "return"
> & AppReturn
<undefined
| ABIValue
| ABIStruct
>> ; delete
: (params
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: (undefined
| ABIValue
| AppMethodCallTransactionArgument
| ABIStruct
)[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; method
: string
; note?
: string
| Uint8Array
; onComplete?
: OnApplicationComplete
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<Omit
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }, "return"
> & AppReturn
<undefined
| ABIValue
| ABIStruct
>> ; fundAppAccount
: (params
: { amount
: AlgoAmount
; closeRemainderTo?
: string
| Address
; coverAppCallInnerTransactionFees?
: boolean
; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; maxRoundsToWaitForConfirmation?
: number
; note?
: string
| Uint8Array
; populateAppCallResources?
: boolean
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; suppressLog?
: boolean
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> ; optIn
: (params
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: (undefined
| ABIValue
| AppMethodCallTransactionArgument
| ABIStruct
)[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; method
: string
; note?
: string
| Uint8Array
; onComplete?
: OnApplicationComplete
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<Omit
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }, "return"
> & AppReturn
<undefined
| ABIValue
| ABIStruct
>> ; update
: (params
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: (undefined
| ABIValue
| AppMethodCallTransactionArgument
| ABIStruct
)[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; method
: string
; note?
: string
| Uint8Array
; onComplete?
: OnApplicationComplete
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & AppClientCompilationParams
& SendParams
) => Promise
<{ compiledApproval?
: CompiledTeal
; compiledClear?
: CompiledTeal
; confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIValue
| ABIStruct
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> } & { bare
: { call
: (params?
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & CallOnComplete
& SendParams
) => Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> ; clearState
: (params?
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> ; closeOut
: (params?
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> ; delete
: (params?
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> ; optIn
: (params?
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & SendParams
) => Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> ; update
: (params?
: { accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: (BoxIdentifier
| BoxReference
)[] ; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; rekeyTo?
: string
| Address
; sender?
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
} & AppClientCompilationParams
& SendParams
) => Promise
<{ compiledApproval?
: CompiledTeal
; compiledClear?
: CompiledTeal
; confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; return?
: ABIReturn
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }> } }
Defined in
state
• get
state(): Object
Get state (local, global, box) from the current app
Returns
Object
Name | Type | Description |
---|---|---|
box | { getAll : () => Promise <Record <string , any >> ; getMap : (mapName : string ) => Promise <Map <ABIValue | ABIStruct , ABIValue | ABIStruct >> ; getMapValue : (mapName : string , key : any ) => Promise <ABIValue | ABIStruct > ; getValue : (name : string ) => Promise <ABIValue | ABIStruct > } | Methods to access box storage for the current app |
box.getAll | () => Promise <Record <string , any >> | - |
box.getMap | (mapName : string ) => Promise <Map <ABIValue | ABIStruct , ABIValue | ABIStruct >> | - |
box.getMapValue | (mapName : string , key : any ) => Promise <ABIValue | ABIStruct > | - |
box.getValue | (name : string ) => Promise <ABIValue | ABIStruct > | - |
global | { getAll : () => Promise <Record <string , any >> ; getMap : (mapName : string ) => Promise <Map <ABIValue | ABIStruct , ABIValue | ABIStruct >> ; getMapValue : (mapName : string , key : any , appState? : AppState ) => Promise <undefined | ABIValue | ABIStruct > ; getValue : (name : string , appState? : AppState ) => Promise <undefined | ABIValue | ABIStruct > } | Methods to access global state for the current app |
global.getAll | () => Promise <Record <string , any >> | - |
global.getMap | (mapName : string ) => Promise <Map <ABIValue | ABIStruct , ABIValue | ABIStruct >> | - |
global.getMapValue | (mapName : string , key : any , appState? : AppState ) => Promise <undefined | ABIValue | ABIStruct > | - |
global.getValue | (name : string , appState? : AppState ) => Promise <undefined | ABIValue | ABIStruct > | - |
local | (address : string | Address ) => { getAll : () => Promise <Record <string , any >> ; getMap : (mapName : string ) => Promise <Map <ABIValue | ABIStruct , ABIValue | ABIStruct >> ; getMapValue : (mapName : string , key : any , appState? : AppState ) => Promise <undefined | ABIValue | ABIStruct > ; getValue : (name : string , appState? : AppState ) => Promise <undefined | ABIValue | ABIStruct > } | - |
Defined in
Methods
clone
▸ clone(params
): AppClient
Clone this app client with different params
Parameters
Name | Type | Description |
---|---|---|
params | Object | The params to use for the the cloned app client. Omit a param to keep the original value. Set a param to override the original value. Setting to undefined will clear the original value. |
params.appId? | bigint | The ID of the app instance this client should make calls against. |
params.appName? | string | Optional override for the app name; used for on-chain metadata and lookups. Defaults to the ARC-32/ARC-56 app spec name |
params.approvalSourceMap? | ProgramSourceMap | Optional source map for the approval program |
params.clearSourceMap? | ProgramSourceMap | Optional source map for the clear state program |
params.defaultSender? | string | Address | Optional address to use for the account to use as the default sender for calls. |
params.defaultSigner? | TransactionSigner | Optional signer to use as the default signer for default sender calls (if not specified then the signer will be resolved from AlgorandClient ). |
Returns
A new app client with the altered params
Example
const appClient2 = appClient.clone({ defaultSender: 'NEW_SENDER_ADDRESS' });
Defined in
compile
▸ compile(compilation?
): Promise
<AppClientCompilationResult
>
Compiles the approval and clear state programs (if TEAL templates provided), performing any provided deploy-time parameter replacement and stores the source maps.
If no TEAL templates provided it will use any byte code provided in the app spec.
Will store any generated source maps for later use in debugging.
Parameters
Name | Type | Description |
---|---|---|
compilation? | AppClientCompilationParams | Any compilation parameters to use |
Returns
Promise
<AppClientCompilationResult
>
The compiled code and any compilation results (including source maps)
Defined in
exportSourceMaps
▸ exportSourceMaps(): AppSourceMaps
Export the current source maps for the app.
Returns
The source maps
Defined in
exposeLogicError
▸ exposeLogicError(e
, isClearStateProgram?
): Promise
<Error
>
Takes an error that may include a logic error from a call to the current app and re-exposes the error to include source code information via the source map and ARC-56 spec.
Parameters
Name | Type | Description |
---|---|---|
e | Error | The error to parse |
isClearStateProgram? | boolean | Whether or not the code was running the clear state program (defaults to approval program) |
Returns
Promise
<Error
>
The new error, or if there was no logic error or source map then the wrapped error with source details
Defined in
fundAppAccount
▸ fundAppAccount(params
): Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }>
Funds Algo into the app account for this app.
An alias for appClient.send.fundAppAccount(params)
.
Parameters
Name | Type | Description |
---|---|---|
params | Object | The parameters for the funding transaction |
params.amount | AlgoAmount | Amount to send |
params.closeRemainderTo? | string | Address | If given, close the sender account and send the remaining balance to this address Warning: Be careful with this parameter as it can lead to loss of funds if not used correctly. |
params.coverAppCallInnerTransactionFees? | boolean | Whether to use simulate to automatically calculate required app call inner transaction fees and cover them in the parent app call transaction fee |
params.extraFee? | AlgoAmount | The fee to pay IN ADDITION to the suggested fee. Useful for manually covering inner transaction fees. |
params.firstValidRound? | bigint | Set the first round this transaction is valid. If left undefined, the value from algod will be used. We recommend you only set this when you intentionally want this to be some time in the future. |
params.lastValidRound? | bigint | The last round this transaction is valid. It is recommended to use validityWindow instead. |
params.lease? | string | Uint8Array | Prevent multiple transactions with the same lease being included within the validity window. A lease enforces a mutually exclusive transaction (useful to prevent double-posting and other scenarios). |
params.maxFee? | AlgoAmount | Throw an error if the fee for the transaction is more than this amount; prevents overspending on fees during high congestion periods. |
params.maxRoundsToWaitForConfirmation? | number | The number of rounds to wait for confirmation. By default until the latest lastValid has past. |
params.note? | string | Uint8Array | Note to attach to the transaction. Max of 1000 bytes. |
params.populateAppCallResources? | boolean | Whether to use simulate to automatically populate app call resources in the txn objects. Defaults to Config.populateAppCallResources . |
params.rekeyTo? | string | Address | Change the signing key of the sender to the given address. Warning: Please be careful with this parameter and be sure to read the official rekey guidance. |
params.sender? | string | Address | The optional sender to send the transaction from, will use the application client’s default sender by default if specified |
params.signer? | TransactionSigner | TransactionSignerAccount | The function used to sign transaction(s); if not specified then an attempt will be made to find a registered signer for the given sender or use a default signer (if configured). |
params.staticFee? | AlgoAmount | The static transaction fee. In most cases you want to use extraFee unless setting the fee to 0 to be covered by another transaction. |
params.suppressLog? | boolean | Whether to suppress log messages from transaction send, default: do not suppress. |
params.validityWindow? | number | bigint | How many rounds the transaction should be valid for, if not specified then the registered default validity window will be used. |
Returns
Promise
<{ confirmation
: PendingTransactionResponse
; confirmations
: PendingTransactionResponse
[] ; groupId
: string
; returns?
: ABIReturn
[] ; transaction
: Transaction
; transactions
: Transaction
[] ; txIds
: string
[] }>
The result of the funding
Example
await appClient.fundAppAccount({ amount: algo(1) });
Defined in
getABIArgsWithDefaultValues
▸ getABIArgsWithDefaultValues(methodNameOrSignature
, args
, sender
): Promise
<undefined
| (undefined
| Transaction
| ABIValue
| TransactionWithSigner
| Promise
<Transaction
> | AppMethodCall
<{ accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; approvalProgram
: string
| Uint8Array
; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: BoxIdentifier | BoxReference[] ; clearStateProgram
: string
| Uint8Array
; extraFee?
: AlgoAmount
; extraProgramPages?
: number
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; onComplete?
: NoOpOC
| OptInOC
| CloseOutOC
| UpdateApplicationOC
| DeleteApplicationOC
; rekeyTo?
: string
| Address
; schema?
: { globalByteSlices
: number
; globalInts
: number
; localByteSlices
: number
; localInts
: number
} ; sender
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
}> | AppMethodCall
<{ accountReferences?
: (string
| Address
)[] ; appId
: bigint
; appReferences?
: bigint
[] ; approvalProgram
: string
| Uint8Array
; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: BoxIdentifier | BoxReference[] ; clearStateProgram
: string
| Uint8Array
; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; onComplete?
: UpdateApplicationOC
; rekeyTo?
: string
| Address
; sender
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
}> | AppMethodCall
<AppMethodCallParams
>)[]>
Returns ABI method arguments ready for a method call params object with default values populated and structs replaced with tuples.
It does this by replacing any undefined
values with the equivalent default value from the given ARC-56 app spec.
Parameters
Name | Type | Description |
---|---|---|
methodNameOrSignature | string | The method name or method signature to call if an ABI call is being emitted. e.g. my_method or my_method(unit64,string)bytes |
args | undefined | (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] | The arguments to the method with undefined for any that should be populated with a default value |
sender | string | Address | - |
Returns
Promise
<undefined
| (undefined
| Transaction
| ABIValue
| TransactionWithSigner
| Promise
<Transaction
> | AppMethodCall
<{ accountReferences?
: (string
| Address
)[] ; appReferences?
: bigint
[] ; approvalProgram
: string
| Uint8Array
; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: BoxIdentifier | BoxReference[] ; clearStateProgram
: string
| Uint8Array
; extraFee?
: AlgoAmount
; extraProgramPages?
: number
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; onComplete?
: NoOpOC
| OptInOC
| CloseOutOC
| UpdateApplicationOC
| DeleteApplicationOC
; rekeyTo?
: string
| Address
; schema?
: { globalByteSlices
: number
; globalInts
: number
; localByteSlices
: number
; localInts
: number
} ; sender
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
}> | AppMethodCall
<{ accountReferences?
: (string
| Address
)[] ; appId
: bigint
; appReferences?
: bigint
[] ; approvalProgram
: string
| Uint8Array
; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: BoxIdentifier | BoxReference[] ; clearStateProgram
: string
| Uint8Array
; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; onComplete?
: UpdateApplicationOC
; rekeyTo?
: string
| Address
; sender
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
}> | AppMethodCall
<AppMethodCallParams
>)[]>
Defined in
getABIMethod
▸ getABIMethod(methodNameOrSignature
): Arc56Method
Returns the ABI Method spec for the given method string for the app represented by this application client instance
Parameters
Name | Type | Description |
---|---|---|
methodNameOrSignature | string | The method name or method signature to call if an ABI call is being emitted. e.g. my_method or my_method(unit64,string)bytes |
Returns
A tuple with: [ARC-56 Method
, algosdk ABIMethod
]
Defined in
getABIParams
▸ getABIParams<TParams
, TOnComplete
>(params
, onComplete
): Promise
<TParams
& { appId
: bigint
; args
: undefined
| (undefined
| Transaction
| ABIValue
| TransactionWithSigner
| Promise
<Transaction
> | AppMethodCall
<{ accountReferences?
: (… | …)[] ; appReferences?
: bigint
[] ; approvalProgram
: string
| Uint8Array
; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: BoxIdentifier | BoxReference[] ; clearStateProgram
: string
| Uint8Array
; extraFee?
: AlgoAmount
; extraProgramPages?
: number
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; onComplete?
: NoOpOC
| OptInOC
| CloseOutOC
| UpdateApplicationOC
| DeleteApplicationOC
; rekeyTo?
: string
| Address
; schema?
: { globalByteSlices
: number
; globalInts
: number
; localByteSlices
: number
; localInts
: number
} ; sender
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
}> | AppMethodCall
<{ accountReferences?
: (… | …)[] ; appId
: bigint
; appReferences?
: bigint
[] ; approvalProgram
: string
| Uint8Array
; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: BoxIdentifier | BoxReference[] ; clearStateProgram
: string
| Uint8Array
; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; onComplete?
: UpdateApplicationOC
; rekeyTo?
: string
| Address
; sender
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
}> | AppMethodCall
<AppMethodCallParams
>)[] ; method
: Arc56Method
; onComplete
: TOnComplete
; sender
: Address
= sender; signer
: undefined
| TransactionSigner
| TransactionSignerAccount
}>
Type parameters
Name | Type |
---|---|
TParams | extends Object |
TOnComplete | extends OnApplicationComplete |
Parameters
Name | Type |
---|---|
params | TParams |
onComplete | TOnComplete |
Returns
Promise
<TParams
& { appId
: bigint
; args
: undefined
| (undefined
| Transaction
| ABIValue
| TransactionWithSigner
| Promise
<Transaction
> | AppMethodCall
<{ accountReferences?
: (… | …)[] ; appReferences?
: bigint
[] ; approvalProgram
: string
| Uint8Array
; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: BoxIdentifier | BoxReference[] ; clearStateProgram
: string
| Uint8Array
; extraFee?
: AlgoAmount
; extraProgramPages?
: number
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; onComplete?
: NoOpOC
| OptInOC
| CloseOutOC
| UpdateApplicationOC
| DeleteApplicationOC
; rekeyTo?
: string
| Address
; schema?
: { globalByteSlices
: number
; globalInts
: number
; localByteSlices
: number
; localInts
: number
} ; sender
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
}> | AppMethodCall
<{ accountReferences?
: (… | …)[] ; appId
: bigint
; appReferences?
: bigint
[] ; approvalProgram
: string
| Uint8Array
; args?
: Uint8Array
[] ; assetReferences?
: bigint
[] ; boxReferences?
: BoxIdentifier | BoxReference[] ; clearStateProgram
: string
| Uint8Array
; extraFee?
: AlgoAmount
; firstValidRound?
: bigint
; lastValidRound?
: bigint
; lease?
: string
| Uint8Array
; maxFee?
: AlgoAmount
; note?
: string
| Uint8Array
; onComplete?
: UpdateApplicationOC
; rekeyTo?
: string
| Address
; sender
: string
| Address
; signer?
: TransactionSigner
| TransactionSignerAccount
; staticFee?
: AlgoAmount
; validityWindow?
: number
| bigint
}> | AppMethodCall
<AppMethodCallParams
>)[] ; method
: Arc56Method
; onComplete
: TOnComplete
; sender
: Address
= sender; signer
: undefined
| TransactionSigner
| TransactionSignerAccount
}>
Defined in
getBareCreateTransactionMethods
▸ getBareCreateTransactionMethods(): Object
Returns
Object
Name | Type | Description |
---|---|---|
call | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & CallOnComplete ) => Promise <Transaction > | - |
clearState | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => Promise <Transaction > | - |
closeOut | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => Promise <Transaction > | - |
delete | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => Promise <Transaction > | - |
optIn | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => Promise <Transaction > | - |
update | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & AppClientCompilationParams ) => Promise <Transaction > | - |
Defined in
getBareParams
▸ getBareParams<TParams
, TOnComplete
>(params
, onComplete
): TParams
& { appId
: bigint
; onComplete
: TOnComplete
; sender
: Address
; signer
: undefined
| TransactionSigner
| TransactionSignerAccount
}
Type parameters
Name | Type |
---|---|
TParams | extends undefined | { sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount } |
TOnComplete | extends OnApplicationComplete |
Parameters
Name | Type |
---|---|
params | TParams |
onComplete | TOnComplete |
Returns
TParams
& { appId
: bigint
; onComplete
: TOnComplete
; sender
: Address
; signer
: undefined
| TransactionSigner
| TransactionSignerAccount
}
Defined in
getBareParamsMethods
▸ getBareParamsMethods(): Object
Returns
Object
Name | Type | Description |
---|---|---|
call | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & CallOnComplete ) => AppCallParams | - |
clearState | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => AppCallParams | - |
closeOut | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => AppCallParams | - |
delete | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => AppDeleteParams | - |
optIn | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => AppCallParams | - |
update | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & AppClientCompilationParams ) => Promise <{ accountReferences? : (string | Address )[] ; appId : bigint ; appReferences? : bigint [] ; approvalProgram : string | Uint8Array ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; clearStateProgram : string | Uint8Array ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; onComplete? : UpdateApplicationOC ; rekeyTo? : string | Address ; sender : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }> | - |
Defined in
getBareSendMethods
▸ getBareSendMethods(): Object
Returns
Object
Name | Type | Description |
---|---|---|
call | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & CallOnComplete & SendParams ) => Promise <{ confirmation : PendingTransactionResponse ; confirmations : PendingTransactionResponse [] ; groupId : string ; return? : ABIReturn ; returns? : ABIReturn [] ; transaction : Transaction ; transactions : Transaction [] ; txIds : string [] }> | - |
clearState | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & SendParams ) => Promise <{ confirmation : PendingTransactionResponse ; confirmations : PendingTransactionResponse [] ; groupId : string ; return? : ABIReturn ; returns? : ABIReturn [] ; transaction : Transaction ; transactions : Transaction [] ; txIds : string [] }> | - |
closeOut | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & SendParams ) => Promise <{ confirmation : PendingTransactionResponse ; confirmations : PendingTransactionResponse [] ; groupId : string ; return? : ABIReturn ; returns? : ABIReturn [] ; transaction : Transaction ; transactions : Transaction [] ; txIds : string [] }> | - |
delete | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & SendParams ) => Promise <{ confirmation : PendingTransactionResponse ; confirmations : PendingTransactionResponse [] ; groupId : string ; return? : ABIReturn ; returns? : ABIReturn [] ; transaction : Transaction ; transactions : Transaction [] ; txIds : string [] }> | - |
optIn | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & SendParams ) => Promise <{ confirmation : PendingTransactionResponse ; confirmations : PendingTransactionResponse [] ; groupId : string ; return? : ABIReturn ; returns? : ABIReturn [] ; transaction : Transaction ; transactions : Transaction [] ; txIds : string [] }> | - |
update | (params? : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : Uint8Array [] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; note? : string | Uint8Array ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & AppClientCompilationParams & SendParams ) => Promise <{ compiledApproval? : CompiledTeal ; compiledClear? : CompiledTeal ; confirmation : PendingTransactionResponse ; confirmations : PendingTransactionResponse [] ; groupId : string ; return? : ABIReturn ; returns? : ABIReturn [] ; transaction : Transaction ; transactions : Transaction [] ; txIds : string [] }> | - |
Defined in
getBoxMethods
▸ getBoxMethods(): Object
Returns
Object
Name | Type | Description |
---|---|---|
getAll | () => Promise <Record <string , any >> | - |
getMap | (mapName : string ) => Promise <Map <ABIValue | ABIStruct , ABIValue | ABIStruct >> | - |
getMapValue | (mapName : string , key : any ) => Promise <ABIValue | ABIStruct > | - |
getValue | (name : string ) => Promise <ABIValue | ABIStruct > | - |
Defined in
getBoxNames
▸ getBoxNames(): Promise
<BoxName
[]>
Returns the names of all current boxes for the current app.
Returns
Promise
<BoxName
[]>
The names of the boxes
Example
const boxNames = await appClient.getBoxNames();
Defined in
getBoxValue
▸ getBoxValue(name
): Promise
<Uint8Array
>
Returns the value of the given box for the current app.
Parameters
Name | Type | Description |
---|---|---|
name | BoxIdentifier | The identifier of the box to return |
Returns
Promise
<Uint8Array
>
The current box value as a byte array
Example
const boxValue = await appClient.getBoxValue('boxName');
Defined in
getBoxValueFromABIType
▸ getBoxValueFromABIType(name
, type
): Promise
<ABIValue
>
Returns the value of the given box for the current app.
Parameters
Name | Type | Description |
---|---|---|
name | BoxIdentifier | The identifier of the box to return |
type | ABIType |
Returns
Promise
<ABIValue
>
The current box value as a byte array
Example
const boxValue = await appClient.getBoxValueFromABIType('boxName', new ABIUintType(32));
Defined in
getBoxValues
▸ getBoxValues(filter?
): Promise
<{ name
: BoxName
; value
: Uint8Array
}[]>
Returns the values of all current boxes for the current app. Note: This will issue multiple HTTP requests (one per box) and it’s not an atomic operation so values may be out of sync.
Parameters
Name | Type | Description |
---|---|---|
filter? | (name : BoxName ) => boolean | Optional filter to filter which boxes’ values are returned |
Returns
Promise
<{ name
: BoxName
; value
: Uint8Array
}[]>
The (name, value) pair of the boxes with values as raw byte arrays
Example
const boxValues = await appClient.getBoxValues();
Defined in
getBoxValuesFromABIType
▸ getBoxValuesFromABIType(type
, filter?
): Promise
<{ name
: BoxName
; value
: ABIValue
}[]>
Returns the values of all current boxes for the current app decoded using an ABI Type. Note: This will issue multiple HTTP requests (one per box) and it’s not an atomic operation so values may be out of sync.
Parameters
Name | Type | Description |
---|---|---|
type | ABIType | The ABI type to decode the values with |
filter? | (name : BoxName ) => boolean | Optional filter to filter which boxes’ values are returned |
Returns
Promise
<{ name
: BoxName
; value
: ABIValue
}[]>
The (name, value) pair of the boxes with values as the ABI Value
Example
const boxValues = await appClient.getBoxValuesFromABIType(new ABIUintType(32));
Defined in
getGlobalState
▸ getGlobalState(): Promise
<AppState
>
Returns raw global state for the current app.
Returns
Promise
<AppState
>
The global state
Example
const globalState = await appClient.getGlobalState();
Defined in
getLocalState
▸ getLocalState(address
): Promise
<AppState
>
Returns raw local state for the given account address.
Parameters
Name | Type | Description |
---|---|---|
address | string | Address | The address of the account to get the local state for |
Returns
Promise
<AppState
>
The local state
Example
const localState = await appClient.getLocalState('ACCOUNT_ADDRESS');
Defined in
getMethodCallCreateTransactionMethods
▸ getMethodCallCreateTransactionMethods(): Object
Returns
Object
Name | Type | Description |
---|---|---|
call | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & CallOnComplete ) => Promise <{ methodCalls : Map <number , ABIMethod > ; signers : Map <number , TransactionSigner > ; transactions : Transaction [] }> | - |
closeOut | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => Promise <{ methodCalls : Map <number , ABIMethod > ; signers : Map <number , TransactionSigner > ; transactions : Transaction [] }> | - |
delete | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => Promise <{ methodCalls : Map <number , ABIMethod > ; signers : Map <number , TransactionSigner > ; transactions : Transaction [] }> | - |
fundAppAccount | (params : { amount : AlgoAmount ; closeRemainderTo? : string | Address ; coverAppCallInnerTransactionFees? : boolean ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; maxRoundsToWaitForConfirmation? : number ; note? : string | Uint8Array ; populateAppCallResources? : boolean ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; suppressLog? : boolean ; validityWindow? : number | bigint }) => Promise <Transaction > | - |
optIn | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => Promise <{ methodCalls : Map <number , ABIMethod > ; signers : Map <number , TransactionSigner > ; transactions : Transaction [] }> | - |
update | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & AppClientCompilationParams ) => Promise <{ methodCalls : Map <number , ABIMethod > ; signers : Map <number , TransactionSigner > ; transactions : Transaction [] }> | - |
Defined in
getMethodCallParamsMethods
▸ getMethodCallParamsMethods(): Object
Returns
Object
Name | Type | Description |
---|---|---|
call | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & CallOnComplete ) => Promise <AppCallMethodCall > | - |
closeOut | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => Promise <AppCallMethodCall > | - |
delete | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => Promise <AppDeleteMethodCall > | - |
fundAppAccount | (params : { amount : AlgoAmount ; closeRemainderTo? : string | Address ; coverAppCallInnerTransactionFees? : boolean ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; maxRoundsToWaitForConfirmation? : number ; note? : string | Uint8Array ; populateAppCallResources? : boolean ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; suppressLog? : boolean ; validityWindow? : number | bigint }) => { amount : AlgoAmount ; closeRemainderTo? : string | Address ; coverAppCallInnerTransactionFees? : boolean ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; maxRoundsToWaitForConfirmation? : number ; note? : string | Uint8Array ; populateAppCallResources? : boolean ; receiver : Address ; rekeyTo? : string | Address ; sender : Address ; signer : undefined | TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; suppressLog? : boolean ; validityWindow? : number | bigint } | - |
optIn | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint }) => Promise <AppCallMethodCall > | - |
update | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & AppClientCompilationParams ) => Promise <{ accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; approvalProgram : Uint8Array ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; clearStateProgram : Uint8Array ; compiledApproval? : CompiledTeal ; compiledClear? : CompiledTeal ; deletable? : boolean ; deployTimeParams? : TealTemplateParams ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; updatable? : boolean ; validityWindow? : number | bigint } & { appId : bigint ; args : undefined | (undefined | Transaction | ABIValue | TransactionWithSigner | Promise <Transaction > | AppMethodCall <{ accountReferences? : … | … ; appReferences? : … | … ; approvalProgram : … | … ; args? : … | … ; assetReferences? : … | … ; boxReferences? : … | … ; clearStateProgram : … | … ; extraFee? : … | … ; extraProgramPages? : … | … ; firstValidRound? : … | … ; lastValidRound? : … | … ; lease? : … | … | … ; maxFee? : … | … ; note? : … | … | … ; onComplete? : … | … | … | … | … | … ; rekeyTo? : … | … | … ; schema? : … | … ; sender : … | … ; signer? : … | … | … ; staticFee? : … | … ; validityWindow? : … | … | … }> | AppMethodCall <{ accountReferences? : … | … ; appId : bigint ; appReferences? : … | … ; approvalProgram : … | … ; args? : … | … ; assetReferences? : … | … ; boxReferences? : … | … ; clearStateProgram : … | … ; extraFee? : … | … ; firstValidRound? : … | … ; lastValidRound? : … | … ; lease? : … | … | … ; maxFee? : … | … ; note? : … | … | … ; onComplete? : … | … ; rekeyTo? : … | … | … ; sender : … | … ; signer? : … | … | … ; staticFee? : … | … ; validityWindow? : … | … | … }> | AppMethodCall <AppMethodCallParams >)[] ; method : Arc56Method ; onComplete : UpdateApplicationOC ; sender : Address = sender; signer : undefined | TransactionSigner | TransactionSignerAccount }> | - |
Defined in
getMethodCallSendMethods
▸ getMethodCallSendMethods(): Object
Returns
Object
Name | Type | Description |
---|---|---|
call | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & CallOnComplete & SendParams ) => Promise <Omit <{ confirmation : PendingTransactionResponse ; confirmations : PendingTransactionResponse [] ; groupId : string ; return? : ABIReturn ; returns? : ABIReturn [] ; transaction : Transaction ; transactions : Transaction [] ; txIds : string [] }, "return" > & AppReturn <undefined | ABIValue | ABIStruct >> | - |
closeOut | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & SendParams ) => Promise <Omit <{ confirmation : PendingTransactionResponse ; confirmations : PendingTransactionResponse [] ; groupId : string ; return? : ABIReturn ; returns? : ABIReturn [] ; transaction : Transaction ; transactions : Transaction [] ; txIds : string [] }, "return" > & AppReturn <undefined | ABIValue | ABIStruct >> | - |
delete | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & SendParams ) => Promise <Omit <{ confirmation : PendingTransactionResponse ; confirmations : PendingTransactionResponse [] ; groupId : string ; return? : ABIReturn ; returns? : ABIReturn [] ; transaction : Transaction ; transactions : Transaction [] ; txIds : string [] }, "return" > & AppReturn <undefined | ABIValue | ABIStruct >> | - |
fundAppAccount | (params : { amount : AlgoAmount ; closeRemainderTo? : string | Address ; coverAppCallInnerTransactionFees? : boolean ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; maxRoundsToWaitForConfirmation? : number ; note? : string | Uint8Array ; populateAppCallResources? : boolean ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; suppressLog? : boolean ; validityWindow? : number | bigint } & SendParams ) => Promise <{ confirmation : PendingTransactionResponse ; confirmations : PendingTransactionResponse [] ; groupId : string ; returns? : ABIReturn [] ; transaction : Transaction ; transactions : Transaction [] ; txIds : string [] }> | - |
optIn | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & SendParams ) => Promise <Omit <{ confirmation : PendingTransactionResponse ; confirmations : PendingTransactionResponse [] ; groupId : string ; return? : ABIReturn ; returns? : ABIReturn [] ; transaction : Transaction ; transactions : Transaction [] ; txIds : string [] }, "return" > & AppReturn <undefined | ABIValue | ABIStruct >> | - |
update | (params : { accountReferences? : (string | Address )[] ; appReferences? : bigint [] ; args? : (undefined | ABIValue | AppMethodCallTransactionArgument | ABIStruct )[] ; assetReferences? : bigint [] ; boxReferences? : (BoxIdentifier | BoxReference )[] ; extraFee? : AlgoAmount ; firstValidRound? : bigint ; lastValidRound? : bigint ; lease? : string | Uint8Array ; maxFee? : AlgoAmount ; method : string ; note? : string | Uint8Array ; onComplete? : OnApplicationComplete ; rekeyTo? : string | Address ; sender? : string | Address ; signer? : TransactionSigner | TransactionSignerAccount ; staticFee? : AlgoAmount ; validityWindow? : number | bigint } & AppClientCompilationParams & SendParams ) => Promise <{ compiledApproval? : CompiledTeal ; compiledClear? : CompiledTeal ; confirmation : PendingTransactionResponse ; confirmations : PendingTransactionResponse [] ; groupId : string ; return? : ABIValue | ABIStruct ; returns? : ABIReturn [] ; transaction : Transaction ; transactions : Transaction [] ; txIds : string [] }> | - |
Defined in
getSender
▸ getSender(sender
): Address
Returns the sender for a call, using the provided sender or using the defaultSender
if none provided and throws an error if neither provided
Parameters
Name | Type |
---|---|
sender | undefined | string | Address |
Returns
Address
Defined in
getSigner
▸ getSigner(sender
, signer
): undefined
| TransactionSigner
| TransactionSignerAccount
Returns the signer for a call, using the provided signer or the defaultSigner
if no signer was provided and the sender resolves to the default sender, the call will use default signer
or undefined
otherwise (so the signer is resolved from AlgorandClient
)
Parameters
Name | Type |
---|---|
sender | undefined | string | Address |
signer | undefined | TransactionSigner | TransactionSignerAccount |
Returns
undefined
| TransactionSigner
| TransactionSignerAccount
Defined in
getStateMethods
▸ getStateMethods(stateGetter
, keyGetter
, mapGetter
): Object
Parameters
Name | Type |
---|---|
stateGetter | () => Promise <AppState > |
keyGetter | () => { [name: string] : StorageKey ; } |
mapGetter | () => { [name: string] : StorageMap ; } |
Returns
Object
Name | Type | Description |
---|---|---|
getAll | () => Promise <Record <string , any >> | - |
getMap | (mapName : string ) => Promise <Map <ABIValue | ABIStruct , ABIValue | ABIStruct >> | - |
getMapValue | (mapName : string , key : any , appState? : AppState ) => Promise <undefined | ABIValue | ABIStruct > | - |
getValue | (name : string , appState? : AppState ) => Promise <undefined | ABIValue | ABIStruct > | - |
Defined in
handleCallErrors
▸ handleCallErrors(e
): Promise
<Error
>
Make the given call and catch any errors, augmenting with debugging information before re-throwing.
Parameters
Name | Type |
---|---|
e | Error & { sentTransactions? : Transaction [] } |
Returns
Promise
<Error
>
Defined in
importSourceMaps
▸ importSourceMaps(sourceMaps
): void
Import source maps for the app.
Parameters
Name | Type | Description |
---|---|---|
sourceMaps | AppSourceMaps | The source maps to import |
Returns
void
Defined in
processMethodCallReturn
▸ processMethodCallReturn<TReturn
, TResult
>(result
, method
): Promise
<Omit
<TResult
, "return"
> & AppReturn
<TReturn
>>
Checks for decode errors on the SendAppTransactionResult and maps the return value to the specified type
on the ARC-56 method, replacing the return
property with the decoded type.
If the return type is an ARC-56 struct then the struct will be returned.
Type parameters
Name | Type |
---|---|
TReturn | extends undefined | ABIValue | ABIStruct |
TResult | extends Object = { confirmation : PendingTransactionResponse ; confirmations : PendingTransactionResponse [] ; groupId : string ; return? : ABIReturn ; returns? : ABIReturn [] ; transaction : Transaction ; transactions : Transaction [] ; txIds : string [] } |
Parameters
Name | Type | Description |
---|---|---|
result | TResult | Promise <TResult > | The SendAppTransactionResult to be mapped |
method | Arc56Method | The method that was called |
Returns
Promise
<Omit
<TResult
, "return"
> & AppReturn
<TReturn
>>
The smart contract response with an updated return value
Defined in
compile
▸ compile(appSpec
, appManager
, compilation?
): Promise
<AppClientCompilationResult
>
Compiles the approval and clear state programs (if TEAL templates provided), performing any provided deploy-time parameter replacement and returns the compiled code and any compilation results (including source maps).
If no TEAL templates provided it will use any byte code provided in the app spec.
Will store any generated source maps for later use in debugging.
Parameters
Name | Type | Description |
---|---|---|
appSpec | Arc56Contract | The app spec for the app |
appManager | AppManager | The app manager to use for compilation |
compilation? | AppClientCompilationParams | Any compilation parameters to use |
Returns
Promise
<AppClientCompilationResult
>
The compiled code and any compilation results (including source maps)
Defined in
exposeLogicError
▸ exposeLogicError(e
, appSpec
, details
): Error
Takes an error that may include a logic error from a call to the current app and re-exposes the error to include source code information via the source map and ARC-56 spec.
Parameters
Name | Type | Description |
---|---|---|
e | Error | The error to parse |
appSpec | Arc56Contract | The app spec for the app |
details | Object | Additional information to inform the error |
details.approvalSourceInfo? | ProgramSourceInfo | ARC56 approval source info |
details.approvalSourceMap? | ProgramSourceMap | Approval program source map |
details.clearSourceInfo? | ProgramSourceInfo | ARC56 clear source info |
details.clearSourceMap? | ProgramSourceMap | Clear state program source map |
details.isClearStateProgram? | boolean | Whether or not the code was running the clear state program (defaults to approval program) |
details.program? | Uint8Array | program bytes |
Returns
Error
The new error, or if there was no logic error or source map then the wrapped error with source details
Defined in
fromCreatorAndName
▸ fromCreatorAndName(params
): Promise
<AppClient
>
Returns a new AppClient
client, resolving the app by creator address and name
using AlgoKit app deployment semantics (i.e. looking for the app creation transaction note).
Parameters
Name | Type | Description |
---|---|---|
params | Object | The parameters to create the app client |
params.algorand | AlgorandClient | An AlgorandClient instance |
params.appLookupCache? | AppLookup | An optional cached app lookup that matches a name to on-chain details; either this is needed or indexer is required to be passed in to this ClientManager on construction. |
params.appName? | string | Optional override for the app name; used for on-chain metadata and lookups. Defaults to the ARC-32/ARC-56 app spec name |
params.appSpec | string | Arc56Contract | AppSpec | The ARC-56 or ARC-32 application spec as either: _ Parsed JSON ARC-56 Contract _ Parsed JSON ARC-32 AppSpec * Raw JSON string (in either ARC-56 or ARC-32 format) |
params.approvalSourceMap? | ProgramSourceMap | Optional source map for the approval program |
params.clearSourceMap? | ProgramSourceMap | Optional source map for the clear state program |
params.creatorAddress | string | Address | The address of the creator account for the app |
params.defaultSender? | string | Address | Optional address to use for the account to use as the default sender for calls. |
params.defaultSigner? | TransactionSigner | Optional signer to use as the default signer for default sender calls (if not specified then the signer will be resolved from AlgorandClient ). |
params.ignoreCache? | boolean | Whether or not to ignore the AppDeployer lookup cache and force an on-chain lookup, default: use any cached value |
Returns
Promise
<AppClient
>
The AppClient
instance
Example
const appClient = await AppClient.fromCreatorAndName({ creatorAddress: 'CREATOR_ADDRESS', name: 'APP_NAME', appSpec: appSpec, algorand: AlgorandClient.mainNet(),})
#### Defined in
[src/types/app-client.ts:600](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L600)
___
### fromNetwork
▸ **fromNetwork**(`params`): `Promise`\<[`AppClient`](types_app_client.AppClient.md)\>
Returns an `AppClient` instance for the current network based onpre-determined network-specific app IDs specified in the ARC-56 app spec.
If no IDs are in the app spec or the network isn't recognised, an error is thrown.
#### Parameters
| Name | Type | Description || :------ | :------ | :------ || `params` | `Object` | The parameters to create the app client || `params.algorand` | [`AlgorandClient`](types_algorand_client.AlgorandClient.md) | An `AlgorandClient` instance || `params.appName?` | `string` | Optional override for the app name; used for on-chain metadata and lookups. Defaults to the ARC-32/ARC-56 app spec name || `params.appSpec` | `string` \| [`Arc56Contract`](/reference/algokit-utils-ts/api/interfaces/types_app_arc56arc56contract/) \| [`AppSpec`](/reference/algokit-utils-ts/api/interfaces/types_app_specappspec/) | The ARC-56 or ARC-32 application spec as either: * Parsed JSON ARC-56 `Contract` * Parsed JSON ARC-32 `AppSpec` * Raw JSON string (in either ARC-56 or ARC-32 format) || `params.approvalSourceMap?` | `ProgramSourceMap` | Optional source map for the approval program || `params.clearSourceMap?` | `ProgramSourceMap` | Optional source map for the clear state program || `params.defaultSender?` | `string` \| `Address` | Optional address to use for the account to use as the default sender for calls. || `params.defaultSigner?` | `TransactionSigner` | Optional signer to use as the default signer for default sender calls (if not specified then the signer will be resolved from `AlgorandClient`). |
#### Returns
`Promise`\<[`AppClient`](types_app_client.AppClient.md)\>
The `AppClient` instance
**`Example`**
```typescriptconst appClient = await AppClient.fromNetwork({ appSpec: appSpec, algorand: AlgorandClient.mainNet(),})
#### Defined in
[src/types/app-client.ts:629](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/app-client.ts#L629)
___
### normaliseAppSpec
▸ **normaliseAppSpec**(`spec`): [`Arc56Contract`](/reference/algokit-utils-ts/api/interfaces/types_app_arc56arc56contract/)
Takes a string or parsed JSON object that could be ARC-32 or ARC-56 format andnormalises it into a parsed ARC-56 contract object.
#### Parameters
| Name | Type | Description || :------ | :------ | :------ || `spec` | `string` \| [`Arc56Contract`](/reference/algokit-utils-ts/api/interfaces/types_app_arc56arc56contract/) \| [`AppSpec`](/reference/algokit-utils-ts/api/interfaces/types_app_specappspec/) | The spec to normalise |
#### Returns
[`Arc56Contract`](/reference/algokit-utils-ts/api/interfaces/types_app_arc56arc56contract/)
The normalised ARC-56 contract object
**`Example`**
```typescriptconst arc56AppSpec = AppClient.normaliseAppSpec(appSpec)