Skip to main content

NFTImmutableState

Represents the immutable state of an NFT, containing read-only properties and flags that determine the NFT's behavior and permissions.

Hierarchy

  • { address: PublicKey; canChangeMetadata: Bool; canChangeMetadataVerificationKeyHash: Bool; canChangeName: Bool; canChangeOwnerByProof: Bool; canChangeOwnerBySignature: Bool; canChangePrice: Bool; canChangeStorage: Bool; canPause: Bool; creator: PublicKey; id: UInt32; tokenId: Field }
    • NFTImmutableState

Index

Constructors

externalconstructor

  • new NFTImmutableState(value: { address: PublicKey; canChangeMetadata: Bool; canChangeMetadataVerificationKeyHash: Bool; canChangeName: Bool; canChangeOwnerByProof: Bool; canChangeOwnerBySignature: Bool; canChangePrice: Bool; canChangeStorage: Bool; canPause: Bool; creator: PublicKey; id: UInt32; tokenId: Field }): NFTImmutableState
  • Parameters

    • externalvalue: { address: PublicKey; canChangeMetadata: Bool; canChangeMetadataVerificationKeyHash: Bool; canChangeName: Bool; canChangeOwnerByProof: Bool; canChangeOwnerBySignature: Bool; canChangePrice: Bool; canChangeStorage: Bool; canPause: Bool; creator: PublicKey; id: UInt32; tokenId: Field }
      • externaladdress: PublicKey = PublicKey

        The address of the NFT contract (readonly).

      • externalcanChangeMetadata: Bool = Bool

        Indicates whether the NFT's metadata can be updated (readonly).

      • externalcanChangeMetadataVerificationKeyHash: Bool = Bool

        Indicates whether the verification key hash for the metadata can be changed (readonly).

      • externalcanChangeName: Bool = Bool

        Specifies if the name of the NFT can be changed (readonly).

      • externalcanChangeOwnerByProof: Bool = Bool

        Determines if the NFT's ownership can be changed via a zero-knowledge proof (readonly).

      • externalcanChangeOwnerBySignature: Bool = Bool

        Specifies if the NFT's ownership can be transferred through the owner's signature (readonly).

      • externalcanChangePrice: Bool = Bool

        Indicates if the price of the NFT can be modified (readonly).

      • externalcanChangeStorage: Bool = Bool

        Determines whether the storage associated with the NFT can be altered (readonly).

      • externalcanPause: Bool = Bool

        Specifies if the NFT contract can be paused, preventing certain operations (readonly).

      • externalcreator: PublicKey = PublicKey

        The public key of the creator of the NFT (readonly).

      • externalid: UInt32 = UInt32

        The unique identifier of the NFT within the collection (readonly).

      • externaltokenId: Field = Field

        The token ID associated with the NFT (readonly).

    Returns NFTImmutableState

Properties

address

address: PublicKey = PublicKey

The address of the NFT contract (readonly).

canChangeMetadata

canChangeMetadata: Bool = Bool

Indicates whether the NFT's metadata can be updated (readonly).

canChangeMetadataVerificationKeyHash

canChangeMetadataVerificationKeyHash: Bool = Bool

Indicates whether the verification key hash for the metadata can be changed (readonly).

canChangeName

canChangeName: Bool = Bool

Specifies if the name of the NFT can be changed (readonly).

canChangeOwnerByProof

canChangeOwnerByProof: Bool = Bool

Determines if the NFT's ownership can be changed via a zero-knowledge proof (readonly).

canChangeOwnerBySignature

canChangeOwnerBySignature: Bool = Bool

Specifies if the NFT's ownership can be transferred through the owner's signature (readonly).

canChangePrice

canChangePrice: Bool = Bool

Indicates if the price of the NFT can be modified (readonly).

canChangeStorage

canChangeStorage: Bool = Bool

Determines whether the storage associated with the NFT can be altered (readonly).

canPause

canPause: Bool = Bool

Specifies if the NFT contract can be paused, preventing certain operations (readonly).

creator

creator: PublicKey = PublicKey

The public key of the creator of the NFT (readonly).

id

id: UInt32 = UInt32

The unique identifier of the NFT within the collection (readonly).

tokenId

tokenId: Field = Field

The token ID associated with the NFT (readonly).

Methods

staticassertEqual

  • Asserts that two NFTImmutableState instances are equal.


    Parameters

    Returns void

staticfromNFTData

  • Creates a new NFTImmutableState from NFTData and other parameters.


    Parameters

    • params: { address: PublicKey; creator: PublicKey; nftData: NFTData; tokenId: Field }

      The parameters including nftData, creator, address, and tokenId.

      • address: PublicKey
      • creator: PublicKey
      • nftData: NFTData
      • tokenId: Field

    Returns NFTImmutableState

    A new NFTImmutableState instance.