Function pallet_ip_pallet::pallet::dispatchables::offer_license

source ·
pub fn offer_license<T: Config>(
    nft_id: T::NFTId,
    payment_type: PaymentType<T>,
    is_exclusive: bool,
    duration: BlockNumberFor<T>,
)
Expand description

Creates a license offer for an NFT

Allows other accounts to license the NFT under specified terms.

§Arguments

  • origin - Must be signed by the NFT owner
  • nft_id - ID of the NFT to license
  • payment_type - Payment terms (see PaymentType)
  • is_exclusive - Whether this is an exclusive license
  • duration - How long the license lasts (in blocks)

§Events

§Errors

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::offer_license.