Lottery Tutorial
In this guide, we will explore the process of leveraging Nerif Network to automate the mechanism for picking a winner in a lottery.
By following the step-by-step instructions provided, developers will gain the knowledge and practical skills to seamlessly automate smart contract functions execution using Nerif Network and unlock the power of automation for these operations.
To ensure a seamless flow of lottery winner-picking mechanism, Nerif Network will be calling 2 functions from the below Lottery smart contract:
playersExist
checks if there are at least two participants taking part in a lottery (doesn’t change state);pickWinner
selects the winners among the participants (changes state so the transactions should be sent to execute it).
Let’s go!
Last updated