@quantabit/lottery-sdk
v1.0.2
Published
QuantaBit Lottery SDK - Lucky draw and prize management
Readme
@quantabit/lottery-sdk
QuantaBit Lottery SDK - Lucky draw and prize management
📦 Installation
npm install @quantabit/lottery-sdk
# or
yarn add @quantabit/lottery-sdk🚀 Quick Start
Using Hooks
import { useLottery } from '@quantabit/lottery-sdk';
function MyComponent() {
const result = useLottery();
return <div>...</div>;
}API Client
import { lotteryApi } from '@quantabit/lottery-sdk';
// Use lotteryApi for direct API calls
const data = await lotteryApi.list();🪝 Hooks
| Hook | Description |
| ---- | ----------- |
| useLottery | Lottery management |
📖 Type Definitions
import { LotteryType, PrizeLevel } from '@quantabit/lottery-sdk';🌐 Internationalization
import { setLanguage, t } from '@quantabit/lottery-sdk';
setLanguage("en");📄 License
MIT License
🌐 Brand & Links
- Official Mainnet: QuantaBit Chain
- Developer Platform: Developer Platform
- Open Platform: Open Platform
- Payment Platform: Pay Platform
- Feedback: Feedback
