Devnet

Test funds only. Transactions are not real.

Daily Lottery Overview

Introduction to the Proof of Chance Daily Lottery system.

What is the Daily Lottery?

The Daily Lottery is Proof of Chance's flagship product—a fully on-chain lottery system that runs daily draws with complete transparency. Every aspect of the lottery, from ticket purchases to winner selection, is verifiable on the Solana blockchain.

The Daily Lottery represents our commitment to provable fairness. Unlike traditional lotteries, you don't need to trust us—you can verify everything yourself.

Key Features

Fully On-Chain

  • All tickets are stored as on-chain data
  • Winner selection happens in smart contracts
  • Complete transaction history is publicly visible
  • No off-chain database can be manipulated

Player-Sourced Entropy

Proof of Chance draws entropy from players themselves. Each ticket purchase commits a hash of a lucky secret + random salt, stored on-chain. During the upload window, participants reveal their lucky secrets and attest on-chain. The program verifies each reveal and aggregates the revealed commitments into a public, deterministic draw input that anyone can recompute.

Transparent Selection

The winner selection algorithm is:

  • Documented and open-source
  • Deterministic given reveal-included on-chain commitments and ticket ranges
  • Reproducible by anyone with the on-chain data
  • Multi-winner friendly (winner count is chosen by participant votes)

Lottery Lifecycle

A lottery progresses through several phases:

┌─────────────┐    ┌──────────────┐    ┌────────────────┐    ┌──────────────┐
│   Created   │───▶│  Purchasing  │───▶│ Upload / Attest │───▶│  Settlement  │
└─────────────┘    └──────────────┘    └────────────────┘    └──────────────┘
     │                    │                  │                     │
     │                    │                  │                     │
  Lottery           Lucky secret        Lucky secrets          Winners
  initialized       commitments         revealed + attested    finalized
  1. Created: Admin creates a new lottery with parameters
  2. Purchasing: Users buy tickets and commit lucky secret hashes
  3. Upload / Attest: Participants reveal lucky secrets and attest on-chain
  4. Settlement: Winners are determined from reveal-included participants and payouts are recorded on-chain

Prize Distribution

When a lottery settles:

  • The total prize pool is the sum of all ticket purchases (minus protocol fees)
  • Winners are selected deterministically from on-chain state and ticket ranges
  • Winner count comes from participant votes (weighted by tickets)
  • Prize amounts depend on the winner count and pool size
  • Winners can claim their share at any time after settlement

Participation Requirements

RequirementDescription
WalletAny Solana-compatible wallet
Minimum Tickets1 ticket per purchase
Maximum TicketsNo hard limit (configurable by lottery)
PaymentSOL or designated token

Next Steps

Edit this pageLast updated: January 2026