useActiveListings
Hook for fetching all active listings from a Marketplace
contract.
Note: This hook is only for Marketplace contracts. For Marketplace V3 contracts, use useValidDirectListings
or useValidEnglishAuctions
instead
Example
Parameters
Returns
The hook's data
property, once loaded, returns an array containing both AuctionListing
and DirectListing
objects.
Use the type
property to determine which type of listing each one is.
AuctionListing
DirectListing