# Reference

### GetUserData() <a href="#user-content-getuserdata" id="user-content-getuserdata"></a>

This endpoint retrieves OpenId information of users. It validates the JWT generated by the SDK and provides the following Elixir-specific data:

* ElixirID: A unique, unchangeable identifier within the Elixir Platform
* Username: The user's Elixir nickname, displayable in-game
* Wallet: The user's wallet linked to the game's blockchain network

{% hint style="warning" %}
For games with existing User entities and account credentials, it's advised to add a "Link Account" feature. This pairs the ElixirID with your User Entity, requiring a one-time setup, enabling users to use their native game accounts when accessing through Elixir.
{% endhint %}

### GetCollections() <a href="#user-content-getcollections" id="user-content-getcollections"></a>

Use this endpoint to access NFT collections specified in the Elixir Dashboard. It serves as NFT gating, allowing retrieval of all NFTs owned by the user in these collections.

### GetTournaments() <a href="#user-content-gettournaments" id="user-content-gettournaments"></a>

Integrating this SDK provides a comprehensive tournament tool. This method enables the game client to access all Elixir tournaments available for the game. Coordination between the game backend and Elixir configuration is necessary.&#x20;

Refer to the [Tournaments API](/api-docs/api-docs-1/tournaments-api.md) documentation for more information.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.elixir.app/sdk/unity/reference.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
