{
  "name": "Nexus Lottery",
  "description": "Decentralized lottery draws on Binance Smart Chain with verifiable randomness and transparent prizes.",
  "url": "https://nexuslottery.site",
  "updated": "2026-11-11",
  "languages": [
    "en",
    "es"
  ],
  "pages": {
    "en": [
      {
        "name": "Home",
        "url": "https://nexuslottery.site/",
        "markdown": "https://nexuslottery.site/index.md"
      },
      {
        "name": "How to Play",
        "url": "https://nexuslottery.site/how-to-play",
        "markdown": "https://nexuslottery.site/how-to-play.md"
      },
      {
        "name": "Winners",
        "url": "https://nexuslottery.site/winners",
        "markdown": "https://nexuslottery.site/winners.md"
      },
      {
        "name": "FAQ",
        "url": "https://nexuslottery.site/faq",
        "markdown": "https://nexuslottery.site/faq.md"
      }
    ],
    "es": [
      {
        "name": "Inicio",
        "url": "https://nexuslottery.site/es",
        "markdown": "https://nexuslottery.site/es/index.md"
      },
      {
        "name": "Cómo jugar",
        "url": "https://nexuslottery.site/es/how-to-play",
        "markdown": "https://nexuslottery.site/es/how-to-play.md"
      },
      {
        "name": "Ganadores",
        "url": "https://nexuslottery.site/es/winners",
        "markdown": "https://nexuslottery.site/es/winners.md"
      },
      {
        "name": "Preguntas",
        "url": "https://nexuslottery.site/es/faq",
        "markdown": "https://nexuslottery.site/es/faq.md"
      }
    ]
  },
  "documentation": {
    "llms": "https://nexuslottery.site/llms.txt",
    "llmsFull": "https://nexuslottery.site/llms-full.txt"
  },
  "chain": {
    "name": "BNB Smart Chain Mainnet",
    "chainId": 56,
    "rpc": "https://bsc-dataseed.binance.org",
    "explorer": "https://bscscan.com"
  },
  "contracts": {
    "lottery": "0xc3D5D5076e7f8C10aE5d7D155695777E304AFC3C",
    "usdt": "0x55d398326f99059fF775485246999027B3197955",
    "randomNumberGenerator": "0xe9584C33185517dbDF7a55F9068d3440A277E96e"
  },
  "token": {
    "symbol": "USDT",
    "standard": "BEP-20",
    "decimals": 18
  },
  "subgraph": "https://api.studio.thegraph.com/query/106322/nexus-lottery/version/latest",
  "ticket": {
    "priceUsdt": 5,
    "digits": 6,
    "maxPerTransaction": 100,
    "encoding": "stored = 1 followed by the displayed digits reversed (e.g. display 9-1-3-6-6-2 -> 1266319); range 1000000-1999999"
  },
  "lotteryStatus": {
    "0": "Pending",
    "1": "Open",
    "2": "Close",
    "3": "Claimable"
  },
  "prizeTiers": [
    {
      "consecutiveMatchesFromLeft": 6,
      "bracket": 5,
      "share": "50% of the prize pool (Jackpot!)"
    },
    {
      "consecutiveMatchesFromLeft": 5,
      "bracket": 4,
      "share": "20% of the prize pool"
    },
    {
      "consecutiveMatchesFromLeft": 4,
      "bracket": 3,
      "share": "15% of the prize pool"
    },
    {
      "consecutiveMatchesFromLeft": 3,
      "bracket": 2,
      "share": "10% of the prize pool"
    },
    {
      "consecutiveMatchesFromLeft": 2,
      "bracket": 1,
      "share": "3% of the prize pool"
    },
    {
      "consecutiveMatchesFromLeft": 1,
      "bracket": 0,
      "share": "2% of the prize pool"
    }
  ],
  "readFunctions": [
    "viewCurrentLotteryId() view returns (uint256)",
    "viewLottery(uint256 lotteryId) view returns (tuple)",
    "calculateTotalPriceForBulkTickets(uint256 discountDivisor, uint256 priceTicket, uint256 numberTickets) pure returns (uint256)",
    "viewUserInfoForLotteryId(address user, uint256 lotteryId, uint256 cursor, uint256 size) view returns (uint256[], uint32[], bool[], uint256)",
    "viewNumbersAndStatusesForTicketIds(uint256[] ticketIds) view returns (uint32[], bool[])",
    "viewRewardsForTicketId(uint256 lotteryId, uint256 ticketId, uint32 bracket) view returns (uint256)",
    "maxNumberTicketsPerBuyOrClaim() view returns (uint256)"
  ],
  "writeFunctions": [
    {
      "signature": "approve(address spender, uint256 amount)",
      "contract": "usdt",
      "note": "spender = lottery contract"
    },
    {
      "signature": "buyTickets(uint256 lotteryId, uint32[] ticketNumbers)",
      "contract": "lottery",
      "requires": "status == Open"
    },
    {
      "signature": "claimTickets(uint256 lotteryId, uint256[] ticketIds, uint32[] brackets)",
      "contract": "lottery",
      "requires": "status == Claimable"
    }
  ],
  "policy": "Write calls require the end user wallet and explicit user confirmation. The website never auto-connects a wallet."
}
