Get User

Use this method to get a user's metadata, such as the name, bio, social link, etc.

Usage in your script

GetUser
  .Initialize(destroyAtEnd: true)
  .SetParameters(
    "0x421...",
  )
  .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

wallet_address

String

Yes

Unique wallet address of user

.onError()

Action on Error: returns error information.

.onComplete()

Action on successful: returns User_model type.

.Run()

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

Last updated