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