🗂️Get Collections
Use this method to get metadata of multiple collections at the same time.
Usage in your script
Member Functions
.Initialize()
Parameter | Type | Required | Description |
---|---|---|---|
| bool | Optional | defines if this component will be destroyed after |
.SetParameters()
Parameter | Type | Required | Description |
---|---|---|---|
| String | Optional | The number of collections to return |
| String | Optional | The offset for returned collections. Calculated as (page - 1) * perPage |
| String | Optional | The field to sort the collections by (any field in the collection schema may be used) |
| String | Optional | Choose to sort in ascending (asc) or descending (desc) order |
.filter()
Parameter | Type | Required | Description |
---|---|---|---|
isVerified | Bool | Optional | filter if collection is verfied by Altura |
address | String | Optional | filter by collection address |
chainId | String | Optional | filter by chainId |
name | String | Optional | filter by collection name |
holders | String | Optional | filter by amount of holders |
.onError()
Action on Error: returns error information.
.onComplete()
Action on successful: returns Auth_model
type.
.Run()
Runs the API call and fills the corresponding model in the component on success.
Last updated