getUserSlotAssets()
Get assets belonging to the specified slot owned by the specified user
Parameters
type GetUserSlotAssetsProps = {
slotId: string;
walletUserId?: string; // specifies walletId if user is an app-owned wallet
idOnly?: boolean; // if true, response includes assetIds only
countsOnly?: boolean; // if true, response includes asset counts only
}
Examples
const assets = await assetlayer.assets.getUserSlotAssets({
collectionId: 'collectionId',
countsOnly: true
});
Return Types
type ReturnType = Asset[] | AssetCounts;
Last updated