๐Ÿ‘ท
How to become a worker
Becoming a worker offers you the privilege to get rewards since getting the right randomness is a crucial part of the good operability of the lottery.

๐Ÿ“Ž First, you need to query the LoTerra smart contract to get the next round of future randomness.

Query:
1
{
2
"get_round":{}
3
}
Copied!
Result:
1
{
2
"height": "2586980",
3
"result": {
4
"next_round": 600073
5
}
6
}
Copied!

๐Ÿ‘ Great! Now we have the next round for the future randomness, we can go to drand.love and check the randomness.

1
// We can check eventually the randomness from this link
2
// Notice we added the round in the route
3
https://drand.cloudflare.com/public/600073
Copied!
Result:
1
{
2
"round":600109,
3
"randomness":"39d465fa3e8f1e737ce1dcb5da7e0eab506b1a4b43ef7156e1228f8a1c5f07d2",
4
"signature":"87eb101eaaad66632206e3e857625f99c74acca407427b32a3a5bb153e2bf9f0132c69f11ffa458c723d1c7f4885e3c712e814f0b8e6f5024f0152dd08c9d899e6a55b2c8ee22b4e42511f19b76c6df68a4e85f23acc14647f3e1224d69181b7",
5
"previous_signature":"aa60f41eb5ca01c8790d90b00b21a5fb605c42d61d2a0a2f5b43955273b2936cd5c4684e0a544e0e268b291d1333de3713256e1623373bff841cd9803aec96ad6c9108f4151b4bdd9619b85de8689e0e790c197e1313888a234f43813ff1966d"
6
}
Copied!
Now we have the info to add this randomness to Terrand smart contract you need to follow the next steps on
Last modified 3mo ago