Products
SWSS Draw
Pre-launch
Section
Products
Documentation category
Type
Guide
Technical reference
Summary
SWSS Draw, a provably fair, on-chain draw platform operating on SwssChain with verifiable randomness and transparent prize distribution.
SWSS Foundation Notice

This documentation is restricted to authorised members of the SWSS Developer Community. Access is granted exclusively through SWSS DevHub, after KYB and SWSS Foundation approval.

All SwssChain GitHub repositories are private. Significant updates are currently deploying across the full SWSS Ecosystem. SDK and API specifications are subject to change at any time in accordance with security requirements and SwssChain Foundation governance decisions.

Join SWSS DevHub →Have a question? Use the Need Help? button below.
SDK Update Notice

SWSS SDK v2.1 is deploying across the ecosystem. API signatures may change during this period. Ensure your integration uses the latest schema from SWSS DevHub.

Article Content

SWSS Draw

SWSS Draw is a provably fair, on-chain draw platform built on SwssChain. All draw mechanics (entry registration, randomness generation, winner selection, and prize distribution) execute on-chain, ensuring full transparency and immutability of results. Participants can independently verify any draw outcome using only publicly available on-chain data.

Architecture

SWSS Draw uses a commit-reveal randomness scheme anchored to SwssChain block hashes. The randomness seed for each draw round is derived from a combination of:

  • The block hash at the draw's designated closing block (unpredictable at entry time).
  • A pre-committed operator salt published before entry opens.
  • The Verifiable Random Function (VRF) output from the SCP validator set, providing an additional layer of unpredictability independent of any single node.

This design ensures that neither the draw operator nor any individual validator can influence the outcome after entries close.

Draw Types

Type Entry Currency Prize Type
Standard DrawSWSS CoinSWSS Coin pool
Property DrawSWSS CoinRegistered property deed settlement
Charity DrawSWSS CoinSWSS Coin: proceeds directed to registered charities

Settlement Combustion Model Integration

SWSS Draw entry fees and prize distributions are SWSS Coin transactions subject to the standard Transactional Settlement Levy. No additional draw-specific levy applies beyond the standard network protocol. The Ecosystem Revenue Recirculation Protocol distributes a portion of the TSL collected from Draw activity back to active stakers per standard ERRP mechanics.

Regulatory Framework

SWSS Draw operates in jurisdictions where on-chain provably fair draws are legally permitted. Participation eligibility is determined by the user's jurisdiction at the time of entry. SWSS Draw does not constitute gambling under the legal frameworks of all jurisdictions: participants are responsible for determining their local legal position before participating.

Verifying a Draw Result

Any draw result can be independently verified using the SwssChain Explorer. The draw contract address, entry merkle root, randomness seed inputs, and winner selection computation are all recorded on-chain and verifiable without relying on any SWSS-operated service.

# Retrieve draw result from explorer
curl https://swssscan.swss.io/api/v1/contracts/{draw_contract}/events?event=DrawResult&round=42

Developer Integration

Third-party platforms can integrate SWSS Draw functionality via the SWSS Draw API, enabling branded draw experiences that inherit SWSS Draw's on-chain fairness guarantees. Contact the SWSS Draw product team for white-label integration terms.