lock_item_properties: TxDescriptor<{
    collection: number;
    item: number;
    lock_attributes: boolean;
    lock_metadata: boolean;
}>

Disallows changing the metadata or attributes of the item.

Origin must be either ForceOrigin or Signed and the sender should be the Admin of the collection.

  • collection: The collection if the item.
  • item: An item to be locked.
  • lock_metadata: Specifies whether the metadata should be locked.
  • lock_attributes: Specifies whether the attributes in the CollectionOwner namespace should be locked.

Note: lock_attributes affects the attributes in the CollectionOwner namespace only. When the metadata or attributes are locked, it won't be possible the unlock them.

Emits ItemPropertiesLocked.

Weight: O(1)