Back
DagRaffle
GamingRaffle.comProvably-fair raffles. Buy tickets, one winner takes 95% of the pot.
Create a raffle with ticket price, end time, and a committed seed hash. Anyone buys tickets. After end time, creator reveals the seed, contract picks a winner. 5% house cut to treasury.
Contracts
How to use
1
Off-chain: pick a secret seed, compute keccak256(seed) as the commit.
2
Call create(ticketPrice, endTime, seedCommit) to open a raffle.
3
Players call enter(id, count) with exact BDAG value to buy tickets.
4
After endTime, creator calls settle(id, seed) — winner chosen by keccak256 of seed + blockhash + prevrandao.
Cost
5% of the ticket pot on settle. Winner receives 95%. No fee to create or enter.