</> 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
}
โ€‹
Copy link
Outline
๐ŸŽฐ LoTerra lottery contract
๐ŸŽŸ Winning combination
๐Ÿ’ฐ Jackpot
๐ŸŽซ Tickets
๐Ÿ™‹โ€โ™‚๏ธ Players
๐Ÿ† Winners
Query staking contract