Skip to content

assetBulkOptIn

assetBulkOptIn(optIn, algod): Promise<Record<number, string>>

Defined in: algokit-utils-ts/src/asset.ts:130

AssetBulkOptInOutParams

The bulk opt-in request.

AlgodClient

An instance of the Algodv2 class from the algosdk library.

Promise<Record<number, string>>

A record object where the keys are the asset IDs and the values are the corresponding transaction IDs for successful opt-ins.

If there is an error during the opt-in process.

algokit.bulkOptIn({ account: account, assetIds: [12345, 67890] }, algod)