</> QUERY

🎰 LoTerra lottery contract

🎟 Winning combination

Query
Result

Get the winning combination🎟 by lottery 🆔

{
"winning_combination": {
"lottery_id": 8
}
}

Winning combination🎟

{
"79f22f"
}

💰 Jackpot

Query
Result

Get the jackpot💰 by lottery 🆔

{
"jackpot": {
"lottery_id": 8
}
}

Jackpot💰

{
"133746163665"
}

🎫 Tickets

Query
Result

Get the number of tickets🎫 sold by lottery 🆔

{
"count_ticket": {
"lottery_id": 8
}
}

Number of tickets🎫 sold

{
"2687"
}

🙋‍♂️ Players

Query
Result

Get the number of players🙋‍♂️ by lottery 🆔

{
"count_player": {
"lottery_id": 8
}
}

Number of players🙋‍♂️

{
"141"
}
Query
Result

Get all players🙋‍♂️ addresses by lottery 🆔

{
"players":{
"lottery_id": 8
}
}

All players🙋‍♂️ addresses

{
["terraa0000", "terraa0000"]
}

🏆 Winners

Query
Result

Get the winners🏆 by lottery 🆔

{
"winner": {
"lottery_id": 8
}
}

Winners🏆

{
"winners": [
{
"address": "terra0000",
"claims": {
"claimed": false,
"ranks": [
4
]
}
}
}
Query
Result

Get number of winning ticket🎟 by rank & by lottery 🆔

{
"count_winner": {
"lottery_id": 8,
"rank": 4
}
}

Number of winning ticket🎟

{
"15"
}
Query
Result

Get all played combination by address

{
"combination": {
"lottery_id": 8,
"address": "addr0000"
}
}

All played combinations by address

{
["0a0012", "0a1112", "bb9912"]
}

Query staking contract

Get pending Unbond

Query
Result
Get pending unboning LOTA
{
"claims": {
"address": "addr0000"
}
}
{
"claims": []
}

Get holder

Query
Result
{
"holder": {
"address": "addr0000"
}
}
{
"address": "addr0000",
"balance": "0",
"index": "0",
"pending_rewards": "0"
}

Get contract info

Query
Result
{
"state": {}
}
{
"global_index": "0.01644844356413612", // global index
"total_balance": "588238614920", // Total staked
"prev_reward_balance": "3663910891" // balance rewards
}