OAK Random Service is a crucial component in the process of OAK generation. It ensures that the OAK generation process is both fair and transparent. Specifically, this service is designed to randomly select tickets when the number of tickets for a given day surpasses the one-day limit.
- Seed Generation: Call the smart contract to generate a seed. This can be done only once per round by any user.
- Random Data Generation: With the seed, obtain random data off-chain using any compatible program. For instance, with Python, once the data is generated, check if your tickets are part of the selection.
- Admin Input: Admins input the random data to the smart contract in batches. After all entries, you can verify your ticket's status either on the smart contract or via the OAK app.
To check the ticket status with our Python script:
Ensure Python3 and pip3 are installed:
sudo apt-get update
sudo apt install python3-pip
Install the required Python packages:
pip3 install web3
In case of any issues installing web3:
python -m pip install --user cython
python -m pip install --user cytoolz
python -m pip install --user eth-brownie
Run the script:
python3 oak_random_checking.py