Skip to content

getAppClient

getAppClient(appDetails, algod): ApplicationClient

Defined in: src/app-client.ts:40

Parameters

appDetails

AppSpecAppDetails

The details of the app

algod

AlgodClient

An algod instance

Returns

ApplicationClient

The application client

Examples

Resolve by creator and name
const client = algokit.getAppClient(
{
resolveBy: 'creatorAndName',
app: {appSpec},
sender: {account},
creatorAddress: {creator},
findExistingUsing: indexerClient,
},
algodClient,
)
Resolve by id:
const client = algokit.getAppClient(
{
resolveBy: 'id',
app: {appSpec},
sender: {account},
id: {id},
},
algodClient,
)