Skip to main content

MintParams

Represents the parameters required for minting a new NFT.

Hierarchy

  • { address: PublicKey; data: NFTData; expiry: UInt32; fee: UInt64; metadata: Field; metadataVerificationKeyHash: Field; name: Field; owner: PublicKey; storage: Storage; tokenId: Field }
    • MintParams

Index

Constructors

externalconstructor

  • new MintParams(value: { address: PublicKey; data: NFTData; expiry: UInt32; fee: UInt64; metadata: Field; metadataVerificationKeyHash: Field; name: Field; owner: PublicKey; storage: Storage; tokenId: Field }): MintParams
  • Parameters

    • externalvalue: { address: PublicKey; data: NFTData; expiry: UInt32; fee: UInt64; metadata: Field; metadataVerificationKeyHash: Field; name: Field; owner: PublicKey; storage: Storage; tokenId: Field }
      • externaladdress: PublicKey = PublicKey

        The address of the NFT contract.

      • externaldata: NFTData = NFTData

        The data associated with the NFT, including permissions and flags.

      • externalexpiry: UInt32 = UInt32

        The expiry time for minting the NFT.

      • externalfee: UInt64 = UInt64

        The fee associated with minting the NFT.

      • externalmetadata: Field = Field

        The metadata associated with the NFT.

      • externalmetadataVerificationKeyHash: Field = Field

        The hash of the verification key used for metadata proofs.

      • externalname: Field = Field

        The name of the NFT.

      • externalowner: PublicKey = PublicKey

        The owner of the NFT.

      • externalstorage: Storage = Storage

        The off-chain storage information (e.g., IPFS hash).

      • externaltokenId: Field = Field

        The token ID of the NFT.

    Returns MintParams

Properties

address

address: PublicKey = PublicKey

The address of the NFT contract.

data

data: NFTData = NFTData

The data associated with the NFT, including permissions and flags.

expiry

expiry: UInt32 = UInt32

The expiry time for minting the NFT.

fee

fee: UInt64 = UInt64

The fee associated with minting the NFT.

metadata

metadata: Field = Field

The metadata associated with the NFT.

metadataVerificationKeyHash

metadataVerificationKeyHash: Field = Field

The hash of the verification key used for metadata proofs.

name

name: Field = Field

The name of the NFT.

owner

owner: PublicKey = PublicKey

The owner of the NFT.

storage

storage: Storage = Storage

The off-chain storage information (e.g., IPFS hash).

tokenId

tokenId: Field = Field

The token ID of the NFT.