Skip to content

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
}

πŸ”— GitHub

View source on GitHub