Skip to main content

CMSNFTData

collectionAddressstringrequired

The address of the NFT collection

symbolstring

The symbol of the NFT

namestringrequired

The name of the NFT

descriptionstring

Optional description of the NFT

imageURLstringrequired

URL to the NFT image

traits object[]

Array of traits associated with the NFT

  • Array [
  • keystringrequired

    The trait key/name

    typestringrequired

    The type of the trait value

    Possible values: [string, text, image, url, field, number, address, map, tree]

    value objectrequired

    The trait value, can be a string or complex object depending on type

    oneOf
    string
    isPrivateboolean

    Optional flag indicating if this trait is private

  • ]
  • nftData object

    Data associated with the NFT

    ownerstring

    The public key of the owner of the NFT

    approvedstring

    The public key of the approved address of the NFT

    versionint32

    The version number of the NFT state

    idstring

    The unique identifier of the NFT within the collection. A bigint encoded as a string.

    canChangeOwnerByProofboolean

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

    canTransferboolean

    Specifies if the NFT's ownership can be transferred (readonly)

    canApproveboolean

    Specifies if the NFT's approved address can be changed (readonly)

    canChangeMetadataboolean

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

    canChangeStorageboolean

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

    canChangeNameboolean

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

    canChangeMetadataVerificationKeyHashboolean

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

    canPauseboolean

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

    isPausedboolean

    Indicates whether the NFT contract is currently paused

    requireOwnerAuthorizationToUpgradeboolean

    Determines whether the owner's authorization is required to upgrade the NFT's verification key (readonly)

    pricedouble

    The price of the NFT

    mintStartint64

    The start time of the minting period( unix timestamp in ms)

    mintEndint64

    The end time of the minting period( unix timestamp in ms)

    CMSNFTData
    {
    "collectionAddress": "string",
    "symbol": "string",
    "name": "string",
    "description": "string",
    "imageURL": "string",
    "traits": [
    {
    "key": "string",
    "type": "string",
    "value": "string",
    "isPrivate": true
    }
    ],
    "nftData": {
    "owner": "string",
    "approved": "string",
    "version": 0,
    "id": "string",
    "canChangeOwnerByProof": true,
    "canTransfer": true,
    "canApprove": true,
    "canChangeMetadata": true,
    "canChangeStorage": true,
    "canChangeName": true,
    "canChangeMetadataVerificationKeyHash": true,
    "canPause": true,
    "isPaused": true,
    "requireOwnerAuthorizationToUpgrade": true
    },
    "price": 0,
    "mintStart": 0,
    "mintEnd": 0
    }