set_price: TxDescriptor<
    {
        collection: number;
        item: number;
        price?: bigint;
        whitelisted_buyer?: MultiAddress;
    },
>

Set (or reset) the price for an item.

Origin must be Signed and must be the owner of the item.

  • collection: The collection of the item.
  • item: The item to set the price for.
  • price: The price for the item. Pass None, to reset the price.
  • buyer: Restricts the buy operation to a specific account.

Emits ItemPriceSet on success if the price is not None. Emits ItemPriceRemoved on success if the price is None.