app()

Retrieve listings, counts or stats for an App

For a given App, get: Listings, ListingsCounts when setting countsOnly: true, or ListingsStats when settings both countsOnly & collectionStats: true. Optional filters: status, lastUpdatedAt.

Parameters

export type ListingAppProps = {
    appId: string;
    status?: ListingStatus;
    countsOnly?: boolean;
    collectionStats?: boolean;
    lastUpdatedAt?: number;
    includeForeignSlots?: boolean;
}

Examples

const listings = await assetlayer.listings.app({
    appId: 'appId',
    status: 'active',
});
const listingsCounts = await assetlayer.listings.app({
    appId: 'appId',
    status: 'active',
    countsOnly: true
});
const listingsStats = await assetlayer.listings.app({
    appId: 'appId',
    status: 'active',
    countsOnly: true,
    collectionStats: true
});

Return Types

type ReturnType = Listing[] | ListingsCounts | ListingsStats;
Listing

Alternatives

getAppListings()getAppListingsCounts()getAppListingsStats()

Last updated