Last updated 1 year ago
Get assets owned by the specified user
export type AssetUserProps = GetUserAssetsBaseProps & { idOnly?: boolean; // if true, response includes assetIds only countsOnly?: boolean; // if true, response includes collectionIds with counts only }
const assets = await assetlayer.assets.user();
const assets = await assetlayer.assets.user({ idOnly: true });
type ReturnType = Asset[] | AssetCounts | string[];