Mga Setting

Dark Mode

BTC-Lottery.io – Blockchain-Based na Lottery System

BTC-Lottery.io – Blockchain-Based na Lottery System

BTC-Lottery.io ay isang decentralized, provably fair na lottery platform na itinayo sa Bitcoin blockchain technology. Gumagawa ito ng lottery results gamit ang huling 6 characters ng bawat Bitcoin block hash, lumilikha ng transparent at tamper-proof na gaming system.


Live Website

https://btc-lottery.io


Mga Pangunahing Feature

  • Provably Fair: Gumagamit ng BTC block hashes, na pwedeng ma-verify sa kahit anong blockchain explorer.
  • Mabibilis na Draws: Bawat draw ay nakaugnay sa bawat bagong BTC block (~bawat 10 minuto).
  • Immutable Records: Walang central RNG, lahat ng results ay nasa on-chain at public.
  • TRC20 USDT Support: Mga deposits at withdrawals ay ginagawa sa Tron network.
  • Secure Wallet Integration: Paggamit ng non-custodial crypto wallet.
  • CALicensed: Tumatakbo sa ilalim ng Canadian online lottery license.

Paano Gumagana

  1. Bumibili ang mga users ng lottery tickets gamit ang USDT (TRC20).
  2. Bawat ticket ay binibigyan ng random 6-character hexadecimal code.
  3. Kapag na-mine ang susunod na BTC block, ang huling 6 characters ng hash ay nagiging winning code.
  4. Ang mga premyo ay ipinapamahagi sa mga players na ang ticket ay tumugma sa result.

Developer Setup

<code># I-clone ang repository
git clone https://github.com/YOUR_ORG/btc-lottery.io.git

# Pumunta sa project folder
cd btc-lottery.io

# I-install ang dependencies
npm install

# Simulan ang development server
npm run dev</code>

Project Structure

<code>/src
  /components      → Reusable UI components
  /pages           → Frontend routes
  /lib             → Lottery logic, blockchain utils
  /api             → TRC20 at BTC block handling
/public            → Static assets
.env.example       → Environment variable sample</code>

Environment Variables

Gumawa ng .env file base sa .env.example:

<code>NEXT_PUBLIC_API_BASE_URL=https://api.btc-lottery.io
TRONSCAN_API_KEY=your_tronscan_key
BTC_BLOCKCHAIN_API=https://blockchain.info/latestblock</code>

Dependencies

  • Next.js para sa frontend framework
  • ethers.js para sa wallet connectivity
  • axios para sa API communication
  • web3.js (kung applicable) para sa on-chain interactions

Testing

<code>npm run test</code>

Kasama sa mga tests:

  • Draw logic accuracy
  • Wallet at deposit verification
  • Edge-case handling

License

MIT License
© BTC-Lottery.io 2025

Contributing

Malugod naming tinatanggap ang mga contributions! Pakibukas muna ng issue para pag-usapan kung ano ang gusto mong baguhin.

Contact

Para sa technical o business inquiries:
[email protected]