Links
Comment on page
🔮

Update Property

Use this method to update the value of an item's property.

Usage in your script

UpdateProperty
.Initialize(destroyAtEnd: true)
.SetParameters(
address: "0x...",
token_id: "1",
property_name:"Health",
property_value:"100"
)
.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
collection_addr
String
Yes
The item's collection address
token_id
String
Yes
Altura Guard code.
property_name
String
Yes
The name (key) of the property you want to change
property_value
String
Yes
The new value you want to set the property to
.onError()
Action on Error: returns error information.
.onComplete()
Action on successful: returns Items_model type.
.Run()
Runs the API call and fills the corresponding model in the component on success.