📁Get Collection

Use this method to get the metadata of a collection.

Usage in your script

GetCollection
  .Initialize(destroyAtEnd: true)
  .SetParameters(
    collection_address: "0x..."
  )
  .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

collection_address

String

Yes

The collection address

.onError()

Action on Error: returns error information.

.onComplete()

Action on successful: returns Collection_modeltype.

.Run()

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

Last updated