Function useListings

  • Beta

    Get all listings

    Parameters

    • contract: RequiredParam<Marketplace>

      an instance of a marketplace contract

    • Optional filter: MarketplaceFilter

      filter to pass to the query for the sake of pagination & filtering

    Returns UseQueryResult

    a response object that includes an array of listings

    Example

    const { data: listings, isLoading, error } = useListings(contract, { start: 0, count: 100 });
    

    See

    Documentation

Generated using TypeDoc