Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

MintPolicy

Git Source

Defines the access and payment rules for minting objects

struct MintPolicy {
// -- Protocol-controlled fields --
uint32 index; // Unique policy index (assigned by system)
MintPolicyStatus status;
// -- User-configured fields --
MintPermissionType perm; // Type of permission required
uint16 limit; // Max mints per address
uint32 tag; // Arbitrary user tag passed back during callbacks
address recipient; // Where funds are sent (e.g., creator)
address currency; // Payment token (zero = native)
uint96 price; // Price per mint
uint64 idStart; // Start object ID (inclusive)
uint64 idEnd; // End object ID (exclusive)
uint64 saleStart; // Mint start timestamp
uint64 saleEnd; // Mint end timestamp (exclusive)
bytes32 data; // Permission data (e.g. Merkle root)
}