LOTTERY

Lottery Name Tickets sold Ticket price Reward Start date (UTC) End date (UTC)
Day 15 100 (BGCO) 1,485.00 (BGCO) June 30, 2025 20:00:00 July 01, 2025 19:00:00
Free1000 14 Free 1,000.00 (BGCO) June 22, 2025 08:00:00 July 06, 2025 06:00:00

How the Winning Ticket Number is Calculated

Welcome to the Black Gold Coin Lottery! To ensure a transparent and fair process, we use a blockchain-based method to determine the winning ticket number.

📌 The Winning Block Hash

Each lottery has a defined end date. Once this date passes, we use the first block on the Black Gold Coin blockchain that is mined after the end date.

This block's unique hash is used to determine the winning number in a provable and tamper-proof way.

🧮 Step-by-Step Process

  1. Select the Winning Block Hash: Use the hash of the first block mined after the lottery end date.
  2. Extract the Last 4 Hexadecimal Characters: These represent two bytes and provide enough range for thousands of tickets.
    Example: 0000f58c2b8f7d420f6c7b0da5c9e26da589af8db1a2061d9e0b0184448f0513
  3. Convert to Decimal: "0513" in hexadecimal equals 1299 in decimal.
  4. Calculate Winning Ticket: Use the modulo operation:
    (1299 % TotalTickets) + 1

✅ Example Calculations

🎟️ Example 1
  • Total Tickets Sold: 1,200
  • Winning Block Hash: ...448f04EF
  • Last Four Hex Characters: "04EF"
  • Decimal Value: 1263
  • Winning Ticket: (1263 % 1200) + 1 = 64
🎟️ Example 2
  • Total Tickets Sold: 500
  • Winning Block Hash: ...448f00FA
  • Last Four Hex Characters: "00FA"
  • Decimal Value: 250
  • Winning Ticket: (250 % 500) + 1 = 251
🎟️ Example 3
  • Total Tickets Sold: 8
  • Winning Block Hash: ...448f0513
  • Last Four Hex Characters: "0513"
  • Decimal Value: 1299
  • Winning Ticket: (1299 % 8) + 1 = 4

📈 Maximum Number of Tickets

The maximum number of tickets that can be sold in a single lottery round is 65,535.

This limit comes from using the last four hexadecimal characters (2 bytes) of the block hash, which can represent values from 0 to 65,535.

🔒 Why This Method?

This method ensures the winning number is:

  • 🎲 Random: Based on unpredictable blockchain data
  • 🔍 Verifiable: Anyone can check the block hash
  • 🛡️ Fair: No one can manipulate or predict the outcome

Good luck! 🍀