Get Items

Use this method to get metadata of multiple Items at the same time.

Usage in your script

GetItems
  .Initialize(destroyAtEnd: true)
  .SetParameters(
    perPage: "20",
    page: "1",
    sortBy: "name",
    sortDir: "asc"
  )
  .filter( //optional
  collectionAddress:"0x41..A"
  )
  .OnError(error => Debug.Log(error))
  .OnComplete(result=> Debug.Log(result))
  .Run();

Member Functions

.Initialize()

Parameter
Type
Required
Description

destroyAtEnd

bool

Optional

defines if this component will be destroyed after .Run()

.SetParameters()

Parameter
Type
Required
Description

wallet_address

String

Yes

Unique wallet address of user

.filter()

Parameter
Type
Required
Description

name

String

Optional

filter by Item name

collectionAddress

String

Optional

filter by Item collection address

chainId

String

Optional

filter by Item chainId

creatorAddress

String

Optional

filter by Item creator address

holders

String

Optional

filter by Item collection holder

isVerified

bool

Optional

filter if Item is verified by Altura

supply

String

Optional

filter by Item collection supply

.onError()

Action on Error: returns error information.

.onComplete()

Action on successful: returnsItems_model type.

.Run()

Runs the API call and fills the corresponding model in the component on success.

Last updated