🪄
Update Primary Image
Use this method to update an item's primary image.
UpdatePrimaryImage
.Initialize(destroyAtEnd: true)
.SetParameters(
address: "0x...",
token_id: "1",
imageIdex:"1"
)
.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 |
---|---|---|---|
address | String | Yes | Collection address |
token_id | String | Yes | Altura Guard code. |
imageIdex | String | Yes | The index of the image you wish to change to |
.onError()
Action on Error: returns error information.
.onComplete()
.Run()
Runs the API call and fills the corresponding model in the component on success.
Last modified 10mo ago