> For the complete documentation index, see [llms.txt](https://d-ghinea.gitbook.io/royaleeconomy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://d-ghinea.gitbook.io/royaleeconomy/api/balancetop.md).

# BalanceTop

BalanceTop Functions

These functions are found in **RoyaleEconomy.apiHandler.balanceTop:**

To this section is introduced a new object: **TopBalanceElement**\
which contains the name, coins to display in string format and position of a player. It contains 3 functions: getName(), getCoinsDisplay(), getPosition(). The first two are strings and the third one is integer.

Functions from this class will return TopBalanceElements ^

**getTopPurse(int position)** - Returns the TopBalanceElement for player on the specified position (positions start from 1).

```java
String topPlayerPurse = RoyaleEconomy.apiHandler.balanceTop.getTopPurse(1).getName();
String displayCoins = RoyaleEconomy.apiHandler.balanceTop.getTopPurse(1).getCoinsDisplay();
```

The same applies for functions **getTopBank(int position)**, **getTopSharedBank(int position)**.
