Function useActiveListings

  • Beta

    Get all active 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 } = useActiveListings(contract, { seller: "{{wallet_address}}", tokenContract: "0x...", tokenId: 1, start: 0, count: 100 });
    

    See

    Documentation

Generated using TypeDoc