assetBulkOptIn
assetBulkOptIn(
optIn,algod):Promise<Record<number,string>>
Defined in: src/asset.ts:130
Parameters
optIn
AssetBulkOptInOutParams
The bulk opt-in request.
algod
AlgodClient
An instance of the Algodv2 class from the algosdk library.
Returns
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.
Throws
If there is an error during the opt-in process.
Example
algokit.bulkOptIn({ account: account, assetIds: [12345, 67890] }, algod)