Token Ownership
Overview
Interface
interface MustOwnTokens<T extends NumberType> {
collectionId: T;
amountRange: UintRange<T>; // Min/max amount expected
ownershipTimes: UintRange<T>[];
tokenIds: UintRange<T>[];
overrideWithCurrentTime: boolean; // Use current block time. Overrides ownershipTimes with [{ start: currentTime, end: currentTime }]
mustSatisfyForAllAssets: boolean; // All vs one requirement
ownershipCheckParty: string; // Which party to check ownership for: "initiator", "sender", "recipient", or a hardcoded bb1 address (default: "initiator" if empty)
}Field Descriptions
collectionId
amountRange
ownershipTimes
tokenIds
overrideWithCurrentTime
mustSatisfyForAllAssets
ownershipCheckParty
Example
Party-Specific Examples
Check Initiator Ownership (Default)
Check Sender Ownership
Check Recipient Ownership
Check Hardcoded Address Ownership
Last updated