Skip to main content

MintRequest

Represents a request to mint a new NFT, used by the admin contract to determine if minting is allowed.

Hierarchy

  • { address: PublicKey; customFlag: Bool; customId: Field; owner: PublicKey }
    • MintRequest

Index

Constructors

externalconstructor

  • new MintRequest(value: { address: PublicKey; customFlag: Bool; customId: Field; owner: PublicKey }): MintRequest
  • Parameters

    • externalvalue: { address: PublicKey; customFlag: Bool; customId: Field; owner: PublicKey }
      • externaladdress: PublicKey = PublicKey

        The address of the NFT contract where the NFT will be minted.

      • externalcustomFlag: Bool = Bool

        A custom flag that can be interpreted by the admin contract, possibly forming a PublicKey with customId.

      • externalcustomId: Field = Field

        A custom identifier that can be interpreted by the admin contract.

      • externalowner: PublicKey = PublicKey

        The owner of the new NFT (can be different from the sender).

    Returns MintRequest

Properties

address

address: PublicKey = PublicKey

The address of the NFT contract where the NFT will be minted.

customFlag

customFlag: Bool = Bool

A custom flag that can be interpreted by the admin contract, possibly forming a PublicKey with customId.

customId

customId: Field = Field

A custom identifier that can be interpreted by the admin contract.

owner

owner: PublicKey = PublicKey

The owner of the new NFT (can be different from the sender).