- achievements() ⇒
Promise
User achievements.
- askPassCode(email) ⇒
Promise
Ask a passCode to login into the game.
- authenticate() ⇒
Console
Get your account token easily.
- building(id) ⇒
Promise
A building info.
- claimCode(code) ⇒
Promise
Claim a code.
- common() ⇒
Promise
Common game info.
- currencies(id) ⇒
Promise
Cryptocurrencies list of a building.
- dailyRewards() ⇒
Promise
User daily Rewards list.
- division(league_id, division_id) ⇒
Promise
A division players list.
- emptyData ⇒
Object
Empty user data.
- gameCharacters() ⇒
Promise
GameCharacters list.
- leagues() ⇒
Promise
Leagues list.
- login(email, passCode) ⇒
Promise
Login with a passCode to the game.
- lookup(id) ⇒
Promise
An user info.
- newUser(data) ⇒
Promise
Create a user on the server.
- referrals() ⇒
Promise
User referrals.
- researches() ⇒
Promise
Researches list.
- user() ⇒
Promise
User info.
- userLeaderboard() ⇒
Promise
User leaderboard.
- updateUserData(data) ⇒
Promise
Update user data on the server.
- updateUserInstallation(appVersion, deviceId, deviceToken, deviceType) ⇒
Promise
Update user installtion on the server.
- withdraw(address, amount) ⇒
Promise
Ask for a withdraw of your HORA tokens.
User achievements.
Kind: property
Returns: Promise
Ask a passCode to login into the game.
Kind: method
Returns: Promise
Param | Type | Description |
---|---|---|
String |
user email |
Example
askPassCode("lockblock@test.test")
get your account token easily.
Kind: method
Returns: Console
- authenticate in the console
Example
authenticate()
a building info.
Kind: method
Returns: Promise
Param | Type | Description |
---|---|---|
id | Number |
building id |
Example
building(2)
Claim a code.
Kind: method
Returns: Promise
Param | Type | Description |
---|---|---|
code | String |
code |
Example
claimCode("TEST500")
Common game info.
Kind: property
Returns: Promise
cryptocurrencies list of a building.
Kind: method
Returns: Promise
Param | Type | Description |
---|---|---|
id | Number |
building id |
Example
currencies(2)
User daily Rewards list.
Kind: property
Returns: Promise
a division players list.
Kind: method
Returns: Promise
Param | Type | Description |
---|---|---|
league_id | Number |
league id |
division_id | Number |
division id |
Example
division(2, 50)
Empty user data.
Kind: property
Returns: Object
GameCharacters list.
Kind: property
Returns: Promise
Leagues list.
Kind: property
Returns: Promise
Login with a passCode to the game.
Kind: method
Returns: Promise
Param | Type | Description |
---|---|---|
String |
user email | |
passCode | String |
passCode sent to the email |
Example
login("lockblock@test.test", "123456")
an user info.
Kind: method
Returns: Promise
Param | Type | Description |
---|---|---|
id | String |
user id |
Example
lookup("1t1551uq18662v0rq0630tu9")
Create a user on the server.
Kind: method
Returns: Promise
Param | Type | Description |
---|---|---|
data | Object |
empty user data |
Example
newUser(client.emptyData)
User referrals.
Kind: property
Returns: Promise
Researches list.
Kind: property
Returns: Promise
User info.
Kind: property
Returns: Promise
User leaderboard.
Kind: property
Returns: Promise
Update user data on the server.
Kind: method
Returns: Promise
Warning: use this at your own risk !
Param | Type | Description |
---|---|---|
data | Object |
user data |
Example
updateUserData(data)
Update user installtion on the server.
Kind: method
Returns: Promise
Warning: use this at your own risk !
Param | Type | Description |
---|---|---|
appVersion | String |
game version |
deviceId | String |
device id |
deviceToken | String |
device token |
deviceType | String |
device type |
Example
updateUserInstallation("1.6.10", "5112096s844v9q37qu81t0620q0u923v", "", "Android OS 11")
Ask for a withdraw of your HORA tokens.
Kind: method
Returns: Promise
Param | Type | Description |
---|---|---|
address | String |
TRON wallet address |
amount | Number |
amount of HORA |
Example
withdraw("TNjt5fShPVJ4YpsLuU4THuBbg58g2bZoLk", 10000)