Comment on page
🗂
Get Collections
Use this method to get metadata of multiple collections at the same time.
GetCollections
.Initialize(destroyAtEnd: true)
.SetParameters(
perPage: "20",
page: "1",
sortBy: "name",
sortDir: "asc"
)
.filter( //optional
address:"0x2A...2"
)
.OnError(error => Debug.Log(error))
.OnComplete(result => Debug.Log(result))
.Run();
.Initialize()
Parameter | Type | Required | Description |
---|---|---|---|
destroyAtEnd | bool | Optional | defines if this component will be destroyed after .Run() |
.SetParameters()
Parameter | Type | Required | Description |
---|---|---|---|
perPage | String | Optional | The number of collections to return |
page | String | Optional | The offset for returned collections. Calculated as (page - 1) * perPage |
sortBy | String | Optional | The field to sort the collections by (any field in the collection schema may be used) |
sortDir | 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 modified 11mo ago