Skip to content

Find the deposit approval in a collection. Uses substring match (deposit | back) to handle both the new naming (smart-token-deposit) and legacy collections…

findDepositApproval(approvals): iCollectionApproval<bigint> | undefined

Defined in: packages/bitbadgesjs-sdk/src/core/smart-tokens.ts:100

Find the deposit approval in a collection. Uses substring match (deposit | back) to handle both the new naming (smart-token-deposit) and legacy collections (smart-account-backing, smart-token-backing).

Order matters: we check 'deposit' first (most specific) before falling back to 'back' to avoid matching 'unbacking' (which contains 'back').

Parameters

approvals

readonly iCollectionApproval<bigint>[]

Returns

iCollectionApproval<bigint> | undefined

Edit this page on GitHub