Function pallet_ip_pallet::pallet::dispatchables::offer_purchase
source · pub fn offer_purchase<T: Config>(nft_id: T::NFTId, payment_type: PaymentType<T>)Expand description
Creates a purchase offer for an NFT
Allows other accounts to purchase the NFT.
§Arguments
origin- Must be signed by the NFT ownernft_id- ID of the NFT to purchasepayment_type- Payment terms (seePaymentType)
§Events
Event::PurchaseOffered- When offer is created
§Errors
Error::NftNotFound- If NFT doesn’t existError::NotNftOwner- If caller doesn’t own the NFTError::NftInEscrow- If NFT is in escrow
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::offer_purchase.