getUserCollectionAssets()

Get assets belonging to the specified collection owned by the specified user

Parameters

type GetUserCollectionAssetsProps = {
    collectionId: string;
    walletUserId?: string; // specifies walletId if user is an app-owned wallet
    serials?: string; // if specified, response only includes assets with serial numbers in specified range (e.g. 1-10, 15, 20-25)
    range?: string; // if specified, response only includes assets with serial numbers in specified range (e.g. 1-10, 15, 20-25)
    idOnly?: boolean; // if true, response includes assetIds only
    countsOnly?: boolean; // if true, response includes asset counts only
}

Examples

const assets = await assetlayer.assets.getUserCollectionAssets({
    collectionId: 'collectionId',
    serials: '10-20',
    idOnly: false
});

Return Types

type ReturnType = Asset[] | AssetCounts;
Asset

Last updated