Transferable Approval
This example demonstrates how to create a basic transferable approval that allows badges to be freely transferred between any users after minting.
Overview
A transferable approval enables badges to be moved between addresses without restrictions.
Code Example
const transferableApproval = new CollectionApproval({
fromListId: '!Mint', // Excludes the Mint address
toListId: 'All',
initiatedByListId: 'All',
transferTimes: UintRangeArray.FullRanges(),
ownershipTimes: UintRangeArray.FullRanges(),
badgeIds: UintRangeArray.FullRanges(),
approvalId: 'transferable-approval',
version: 0n,
approvalCriteria: undefined, // No additional restrictions
});
Related Concepts
Last updated