useAcceptDirectListingOffer
Hook for accepting an offer from a direct listing on a Marketplace
contract.
Allows the seller (the user who listed the NFT for sale) to accept an offer on their listing, triggering a sale event, meaning the:
NFT(s) are transferred from the seller to the buyer.
Funds from the offeror are sent to the seller.
Mutation object to accept an offer on a direct listing
options
The mutation function accepts an object as argument with the following properties:
listingId
The listingId
of the listing you wish to accept.
addressOfOfferor
The wallet address of the user who made the offer you wish to accept.
The useContractEvents
hook can be used to read all NewOffer
events on your Marketplace
contract.