Welcome to the Drawn SDK
This documentation provides an overview of all available SDK methods, API behaviors, and integration guidance for enabling compliant, in-wallet lottery play with the Drawn platform.
π― Purpose
Drawn enables digital lottery fulfillment without changing state laws or user behaviorβpowering play via:
- Geo-gated compliance
- Age-verified wallets
- In-app SDK prompts and payment orchestration
π Documentation Sections
- User Methods: Submit plays, check results, initiate payouts
- Fulfillment & Courier: High-value ticket handling and chain-of-custody scan workflows
- Redemption: Track redemption batches and prize collection status
- Compliance & Controls: Geo + age validation, funding source checks
π Quickstart
import { shouldShowPlayOption } from "@drawn/sdk";
const { show } = await shouldShowPlayOption(userId);
if (show) {
// Render Play Prompt
}