assetOptIn
assetOptIn(
optIn
,algod
):Promise
<SendTransactionResult
>
Defined in: src/asset.ts:67
Parameters
optIn
AssetOptInParams
The opt-in definition
algod
AlgodClient
An algod client
Returns
Promise
<SendTransactionResult
>
The transaction object and optionally the confirmation if it was sent to the chain (skipSending
is false
or unset)
Example
await algokit.assetOptIn({ account, assetId }, algod)