All chains
    Preparing search index...

    Type Alias mint

    mint: TxDescriptor<
        {
            collection: number;
            item: number;
            mint_to: MultiAddress;
            witness_data?: { mint_price?: bigint; owned_item?: number };
        },
    >

    Mint an item of a particular collection.

    The origin must be Signed and the sender must comply with the mint_settings rules.

    • collection: The collection of the item to be minted.
    • item: An identifier of the new item.
    • mint_to: Account into which the item will be minted.
    • witness_data: When the mint type is HolderOf(collection_id), then the owned item_id from that collection needs to be provided within the witness data object. If the mint price is set, then it should be additionally confirmed in the witness_data.

    Note: the deposit will be taken from the origin and not the owner of the item.

    Emits Issued event when successful.

    Weight: O(1)