Get a User's Items
Use this method to get the items of a specific user.
Usage in your script
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
perPage | number | Optional | The number of items to return |
page | number | Optional | The offset for returned items. Calculated as (page - 1) * perPage |
sortBy | string | Optional | The field to sort the items by (any field in the item schema may be used) |
sortDir | asc' | 'desc' | Optional | Choose to sort in ascending (asc) or descending (desc) order |
includeLIsted | boolean | Optional | If the user's listed NFTs should be included (listed NFTs are still owned by the user, however on the blockchain they are held by a marketplace smart contract) |
slim | boolean | Optional | Returns a more condensed version of the items. Limits the item schema to: name, properties, tokenId, collectionAddress, supply, maxSupply, image, imageUrl, imageIndex, and imageCount |
Last updated