🖼️Get User's Items

Use this method to get the items of a specific user.

Usage in your script

GetUsersItems
  .Initialize(destroyAtEnd: true)
  .SetAddress(
    account_address: "0x..."
  )
  .filter( //optional
  collectionAddress:"0x41..A",
  )
  .OnError(error => Debug.Log(error))
  .OnComplete(result => Debug.Log(result))
  .Run();

Member Functions

.Initialize()

ParameterTypeRequiredDescription

destroyAtEnd

bool

Optional

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

.SetParameters()

ParameterTypeRequiredDescription

account_address

String

Yes

Unique wallet address of user

.filter()

ParameterTypeRequiredDescription

name

String

Optional

Filter by the item name

collectionAddress

String

Optional

Filter by the item collection address

chainId

String

Optional

Filter by the item chain id

creatorAddress

String

Optional

Filter by the item creator

fileType

String

Optional

Filter by the item file type

isVerified

Bool

Optional

Filter if the item is verfied by Altura

.onError()

Action on Error: returns error information.

.onComplete()

Action on successful: returns Items Items_model type.

.Run()

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

Last updated