Public Minting

The owner of a collection can decide at any moment to enable the Public Minting mode, which allows any account to mint assets in the collection. This mode can be disabled at any time. Note that while Public Minting is enabled, only the collection owner has the authority to evolve minted assets.

This feature enables anyone to experiment with their first asset minting on any blockchain without the need to deploy their own ERC721 smart contract, essentially by only incurring gas fees on LAOS.

As an example, this ERC721 contract on Ethereum has Public Minting turned on; anyone can mint assets on it, by executing transactions on its sibling collection in LAOS.

The methods and events related to enabling and disabling Public Minting in a given LAOS collection are:

    /// @notice Emitted when public minting is enabled for the collection
    event PublicMintingEnabled();

    /// @notice Emitted when public minting is disabled for the collection
    event PublicMintingDisabled();
    
    /// @notice Enables public minting for the collection
    /// When enabled, any address is allowed to mint on this collection
    /// This does not affect evolution: only the owner of the collection can continue evolving assets
    /// @dev Call this function to enable public minting for the collection, the caller must be the owner of the collection
    function enablePublicMinting() external;

    /// @notice Disables public minting for the collection
    /// @dev Call this function to disable public minting for the collection, the caller must be the owner of the collection
    function disablePublicMinting() external;

    /// @notice Checks if public minting is enabled for the collection
    /// @dev Call this function to check if public minting is enabled for the collection
    /// @return true if public minting is enabled for the collection, false otherwise
    function isPublicMintingEnabled() external view returns (bool);

Last updated