📜Get an Item's History

Use this method to get an Item's Transaction History.

Usage in your script

GetHistory
  .Initialize(destroyAtEnd: true)
  .SetParameters(
    address: "0x...",
    token_id: 1
  )
  .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

adress

String

Yes

The item's collection address

token_id

String

Yes

The item's tokenId

.onError()

Action on Error: returns error information.

.onComplete()

Action on successful: returns History_modal type.

.Run()

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

Last updated