user()

Retrieve listings or counts for a User

Get Listings for a User, or ListingsCounts when setting countsOnly: true.

Parameters

export type ListingUserProps = {
    status?: ListingStatus; 
    sellerOnly?: boolean; 
    buyerOnly?: boolean;
    collectionId?: string;
    countsOnly?: boolean;
    walletUserId?: string;
}

Examples

const listings = await assetlayer.listings.user({
    status: 'active',
    sellerOnly: true
});
const listingsCounts = await assetlayer.listings.user({
    status: 'active',
    sellerOnly: true,
    countsOnly: true
});

Return Types

type ReturnType = Listing[] | ListingsCounts;

Alternatives

Last updated