Comment on page
🖼
Get Item
Use this method to get the metadata of an item.
GetItem
.Initialize(destroyAtEnd: true)
.SetParameters(
collection_address: "0x...",
token_id: 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 |
---|---|---|---|
collection_address | String | Yes | The item's collection address |
token_id | Int | Yes | The item's tokenId |
.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 1yr ago