LoTerra
๐ฐ LoTerra
๐ฆ Twitter
๐ฌ Telegram
๐พ Source code
Searchโฆ
LoTerra
๐
OVERVIEW
๐
Introduction
๐ง
What is LoTerra?
๐ฎ
ORACLE
๐จ๐ฉ๐ง๐ฆ
DAO
๐ฆ
Products
โก
Rapido
๐ฐ
Spacewager
๐ฆธโ
The Mystery Machine
๐โ
Dogether
๐
Curio
๐ช
Events
๐
Trading Competition
๐
UPCOMING
๐บ
ROADMAP
๐
Resources
๐ช
TOKENOMICS - LoTerra
๐
CONTRACTS ADDRESSES
๐
SECURITY AUDIT
</> QUERY
๐ฅ
Save LUNA
Powered By
GitBook
</> QUERY
๐ฐ LoTerra lottery contract
Contract address for query:
v2:
โ
https://finder.terra.money/columbus-4/address/terra1zcf0d95z02u2r923sgupp28mqrdwmt930gn8x5
โ
v2.0.1:
โ
https://finder.terra.money/columbus-4/address/terra14mevcmeqt0n4myggt7c56l5fl0xw2hwa2mhlg0
โ
// v2.1.0
โ
https://finder.terra.money/columbus-4/address/terra1q2k29wwcz055q4ftx4eucsq6tg9wtulprjg75w
โ
๐ Winning combination
Query
Result
Get the winning combination๐ by lottery ๐
1
{
2
"winning_combination"
:
{
3
"lottery_id"
:
8
4
}
5
}
Copied!
Winning combination๐
1
{
2
"79f22f"
3
}
Copied!
๐ฐ Jackpot
Query
Result
Get the jackpot๐ฐ by lottery ๐
1
{
2
"jackpot"
:
{
3
"lottery_id"
:
8
4
}
5
}
Copied!
Jackpot๐ฐ
1
{
2
"133746163665"
3
}
Copied!
๐ซ Tickets
Query
Result
Get the number of tickets๐ซ sold by lottery ๐
1
{
2
"count_ticket"
:
{
3
"lottery_id"
:
8
4
}
5
}
Copied!
Number of tickets๐ซ sold
1
{
2
"2687"
3
}
Copied!
๐โโ๏ธ Players
Query
Result
Get the number of players๐โโ๏ธ by lottery ๐
1
{
2
"count_player"
:
{
3
"lottery_id"
:
8
4
}
5
}
Copied!
Number of players๐โโ๏ธ
1
{
2
"141"
3
}
Copied!
Query
Result
Get all players๐โโ๏ธ addresses by lottery ๐
1
{
2
"players"
:{
3
"lottery_id"
:
8
4
}
5
}
Copied!
All players๐โโ๏ธ addresses
1
{
2
[
"terraa0000"
,
"terraa0000"
]
3
}
Copied!
๐ Winners
Query
Result
Get the winners๐ by lottery ๐
1
{
2
"winner"
:
{
3
"lottery_id"
:
8
4
}
5
}
Copied!
Winners๐
1
{
2
"winners"
:
[
3
{
4
"address"
:
"terra0000"
,
5
"claims"
:
{
6
"claimed"
:
false
,
7
"ranks"
:
[
8
4
9
]
10
}
11
}
12
}
Copied!
Query
Result
Get number of winning ticket๐ by rank & by lottery ๐
1
{
2
"count_winner"
:
{
3
"lottery_id"
:
8
,
4
"rank"
:
4
5
}
6
}
Copied!
Number of winning ticket๐
1
{
2
"15"
3
}
Copied!
Query
Result
Get all played combination by address
1
{
2
"combination"
:
{
3
"lottery_id"
:
8
,
4
"address"
:
"addr0000"
5
}
6
}
Copied!
All played combinations by address
1
{
2
["0a0012", "0a1112", "bb9912"]
3
}
Copied!
Query staking contract
Contract address for query
โ
https://finder.terra.money/columbus-4/address/terra1342fp86c3z3q0lksq92lncjxpkfl9hujwh6xfn
โ
Get pending Unbond
Query
Result
Get pending unboning LOTA
1
โ
2
{
3
"claims"
:
{
4
"address"
:
"addr0000"
5
}
6
}
Copied!
1
{
2
"claims"
:
[]
3
}
Copied!
Get holder
Query
Result
1
{
2
"holder"
:
{
3
"address"
:
"addr0000"
4
}
5
}
Copied!
1
{
2
"address"
:
"addr0000"
,
3
"balance"
:
"0"
,
4
"index"
:
"0"
,
5
"pending_rewards"
:
"0"
6
}
Copied!
Get contract info
Query
Result
โ
1
{
2
"state"
:
{}
3
}
Copied!
โ
1
{
2
"global_index"
:
"0.01644844356413612"
,
// global index
3
"total_balance"
:
"588238614920"
,
// Total staked
4
"prev_reward_balance"
:
"3663910891"
// balance rewards
5
}
Copied!
โ
Resources - Previous
SECURITY AUDIT
Next
Save LUNA
Last modified
8mo ago
Copy link
Contents
๐ฐ LoTerra lottery contract
๐ Winning combination
๐ฐ Jackpot
๐ซ Tickets
๐โโ๏ธ Players
๐ Winners
Query staking contract