LOOTERY GAMER Back to the games

LOOTERY GAMER Whitepaper

Version 0.1 · December 2026 · Draft, subject to change before mainnet launch

LOOTERY GAMER is a set of lottery-style games that run entirely on the WAX blockchain. Every ticket, every draw and every prize is a public transaction handled by a smart contract. Winning numbers come from the official WAX random number oracle. No one, including the operator, can take money out of a prize pot.

PRIMI PRIZEPick 5 numbers from 1 to 30. Only a perfect match wins the jackpot.
ONE WISHHand in an NFT to make a wish. One random wish takes the whole pot.
LOOT NARMine on the Alien Worlds land chosen by the operator. Every mine is a free ticket for a TLM prize.

1. Design principles

2. PRIMI PRIZE

A classic number lottery. A ticket is one combination of 5 different numbers from 1 to 30. There are 142,506 possible combinations, so each ticket has a 1 in 142,506 chance of winning.

StepHow it works
PlaySend N × ticket price in WAX to the contract with the memo play:3,11,17,24,30 (several tickets separated by ;). Paying and playing happen in a single signature.
Split90% of every ticket goes to the jackpot and 10% to the operator. The fee can never be set above 10%.
PriceFixed for the whole draw. The operator may set it in US dollars; the price is then adjusted in WAX for the next draw only, so no purchase fails mid-signature.
DrawAt closing time the jackpot is frozen and the oracle provides the winning combination.
PrizeOnly a 5/5 match wins. All winning tickets share the frozen pot equally; rounding remainders stay in the jackpot.
RolloverIf nobody matches all 5 numbers, the pot is added to the next jackpot.
LimitsUp to 2,000 tickets per wallet per draw. Anyone can donate to the jackpot with the memo jackpot.

Optional jackpot cap

If the jackpot ever exceeded the value of all 142,506 combinations, buying every combination would be a guaranteed profit. To rule this out, the operator can switch on an optional cap, expressed in tickets so that it follows the ticket price. Anything above the cap is kept in a reserve that refills the jackpot as soon as there is room, for example when the next draw opens. With a cap of 142,506 tickets or less, no strategy has a positive expected value. The reserve belongs to the players: it cannot be withdrawn either. With no cap (the default), the whole amount stays in the jackpot.

3. ONE WISH

A raffle where the ticket is an NFT and one wish takes everything.

StepHow it works
BuySend WAX with the memo buy to receive ONE WISH NFTs (AtomicAssets). 90% of the price goes to the pot and 10% to the operator.
WishTransfer one NFT back to the contract with the memo enter. That NFT becomes your ticket for the open draw. One wish per wallet per draw.
DrawThe oracle picks one ticket at random. Its owner wins the whole pot.
RolloverIf a draw has no tickets, the pot carries over to the next one.
RecyclingUsed NFTs return to the contract's stock and are sold again, so new NFTs are minted only when the stock runs out. Each NFT records how many draws it has won (mutable attribute wins, written by the contract); this is a keepsake only and has no effect on its odds in future draws.

4. LOOT NAR

A free game for Alien Worlds miners on one land chosen by the operator (shown on the game page, e.g. PLANET x:y). The operator can switch to another land; tickets already earned are kept. Mining works exactly as usual and the mined TLM stays with the miner. LOOT NAR only adds a ticket for every mine.

StepHow it works
MineThe website builds one transaction: (if needed) m.federation::setland to the LOOT NAR land, then m.federation::mine, then lootnar::ticket.
VerifyThe contract reads its own transaction and only issues a ticket if it contains exactly one successful mine by the same account on the configured land, immediately before the ticket. Apart from resource-provider no-ops, no other actions are allowed in that transaction.
DrawThe oracle picks a random ticket. The more mines, the higher the chance.
PrizeA fixed amount of TLM per draw, set by the operator and paid from a prize fund that the operator tops up. The prize is reserved from the fund when the draw closes.

LOOTERY GAMER is not affiliated with Alien Worlds.

5. Randomness

All draws use orng.wax, the official WAX RNG oracle. When a draw closes, the contract requests a random value, and the oracle answers with a value derived from a signature that it cannot choose freely and that nobody can predict in advance. The result is stored in the draw so it can be audited.

Only the first answer for a draw is accepted; late or duplicate answers are ignored. If the oracle does not answer within one hour, anyone can request a new value.

6. Draw lifecycle

Open→Waiting for random→Counting→Paying→Done

7. Security model

What the operator can do

What nobody can do

Other safeguards

Known limitation (LOOT NAR). WAX does not currently enable the feature that would let a contract check another account's code. An account with its own smart contract could, in theory, change land while the mine is being processed. Normal miner accounts are not affected. The rule will be tightened if WAX enables that feature.

8. Fees and on-chain costs

GamePlayer paysOperator fee
PRIMI PRIZETicket price in WAX10% of each ticket
ONE WISHNFT price in WAX10% of each NFT
LOOT NARNothing (only the usual mining CPU)None; the operator funds the TLM prize

Players never pay for storage. The contracts pay for their own RAM out of operator fees, and data is deleted when each draw is resolved:

A short summary of each finished draw is kept as public history.

9. How to verify

GameContract (testnet)Mainnet
PRIMI PRIZElooterygamerTo be announced
ONE WISHlooterywish1To be announced
LOOT NARlooterynar11To be announced

10. Responsible play and legal

LOOTERY GAMER is for adults (18+) only. Play only with money you can afford to lose. Lotteries and raffles are regulated in many countries; it is each player's responsibility to make sure they are allowed to take part where they live. Access may be restricted in some jurisdictions. Nothing in this document is financial advice.

This is a draft. Parameters such as prices, schedules and the LOOT NAR prize will be confirmed before the mainnet launch, and any change to the rules will be reflected here.