NFTImmutableState
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
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
The address of the NFT contract (readonly).
canChangeMetadata
Indicates whether the NFT's metadata can be updated (readonly).
canChangeMetadataVerificationKeyHash
Indicates whether the verification key hash for the metadata can be changed (readonly).
canChangeName
Specifies if the name of the NFT can be changed (readonly).
canChangeOwnerByProof
Determines if the NFT's ownership can be changed via a zero-knowledge proof (readonly).
canChangeOwnerBySignature
Specifies if the NFT's ownership can be transferred through the owner's signature (readonly).
canChangePrice
Indicates if the price of the NFT can be modified (readonly).
canChangeStorage
Determines whether the storage associated with the NFT can be altered (readonly).
canPause
Specifies if the NFT contract can be paused, preventing certain operations (readonly).
creator
The public key of the creator of the NFT (readonly).
id
The unique identifier of the NFT within the collection (readonly).
tokenId
The token ID associated with the NFT (readonly).
Methods
staticassertEqual
Asserts that two NFTImmutableState instances are equal.
Parameters
a: NFTImmutableState
The first NFTImmutableState instance.
b: NFTImmutableState
The second NFTImmutableState instance.
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.
Represents the immutable state of an NFT, containing read-only properties and flags that determine the NFT's behavior and permissions.