client
): UserClient
Name | Type |
---|---|
client | SpaceportSDK |
UserClient
params
): Promise
<CreateUserResponse
>
Creates a new user or returns existing user information
Name | Type | Description |
---|---|---|
params | CreateUserInput | User creation parameters (wallet address is automatically included from SDK) |
Promise
<CreateUserResponse
>
User creation response with user details
walletAddress
): Promise
<User
>
Gets a user by their wallet address
Name | Type | Description |
---|---|---|
walletAddress | string | The wallet address to search for |
Promise
<User
>
User information if found
Promise
<User
>
Gets the current user based on the wallet address used to initialize the SDK
Promise
<User
>
User information for the current wallet address