Functions
General¶
- get_lottery_date - Get date and time of lottery round
- get_cake - Get CAKE contract address
- get_lotteryNFT - Get PLT-token contract address
- get_max_number - Get max number
- get_min_price - Get current price of 1 ticket
- get_balance_of - Get total number of tickets bought by a given address
Next draw¶
- get_allocation - Get prize pool allocation (percent)
- get_drawed - Check if current lottery round is drawed
- get_drawing_phase - Get current lottery round drawing phase
- get_issue_index - Get current lottery round id
- get_last_timestamp - Last updated (timestamp)
- get_total_addresses - Get total addresses
- get_total_amount - Get total pot (CAKE) of current lottery round
Past draws¶
- get_history_amount - Get numbers of tickets matched
- get_history_numbers - Get winning numbers of lottery round
- get_lottery_numbers - Get lottery numbers for a given ticket
- get_matching_reward_amount - Get number of tickets matched a specified number
- get_reward_view - Get rewards for a given ticket
- get_total_rewards - Get total rewards of lottery round