Devnet

Test funds only. Transactions are not real.

Parameters

Lottery configuration parameters and their meanings.

Lottery Parameters

Each lottery uses system-wide settings from the Config account plus per-lottery timing derived from creation.

Core Parameters (Config)

ParameterTypeDescriptionDefault
ticket_price_lamportsu64 (lamports)Cost per ticket in lamports10,000,000 (0.01 SOL)
service_charge_bpsu16Protocol fee in basis points (1/100 of 1%)250 (2.5%)
buy_window_secsu32Duration of the buy window86,400 (24 hours)
upload_window_secsu32Duration of the upload/attestation window86,400 (24 hours)
max_winners_capu32Upper bound for winners32

All amounts are in lamports (1 SOL = 1,000,000,000 lamports).

Winner Selection

Winner count is not a fixed parameter. Participants vote on the number of winners during the upload window; votes are weighted by ticket count. If no votes are recorded, the system defaults to 1 winner.

Ticket Parameters

ParameterTypeDescriptionMax
max_tickets_per_purchaseu32Max tickets in single transaction100
max_tickets_per_walletu32Max tickets per wallet address1000
lucky_secret_max_lengthu32Max characters for lucky secrets256

Admin Parameters

ParameterTypeDescription
admin_authorityPubkeyWallet authorized to manage lotteries
fee_collectorPubkeyWallet receiving protocol fees
upgrade_authorityPubkeyWallet authorized to upgrade program

Current Daily Lottery Defaults

These are the standard parameters for daily lotteries:

SettingValue
Buy Window24 hours
Upload Window24 hours
Ticket Price0.01 SOL
Winner CountParticipant-voted (default 1)
Protocol Fee2.5%

Parameter Governance

Currently, parameter changes require admin action. Future versions may introduce DAO governance for parameter modifications.

Changing Parameters

Parameters that are fixed per lottery:

  • Ticket price for that lottery
  • Buy/upload windows for that lottery

Parameters that can be adjusted globally:

  • Protocol fee (with rate limiting)
  • Buy/upload window defaults
  • Admin authority (via ownership transfer)
Edit this pageLast updated: January 2026