stacking-lottery/SKILL.md
Stacking lottery pots on stackspot.app — pool STX into pots that get stacked via PoX, VRF picks a random winner for sBTC rewards, and all participants get their STX back. Mainnet-only.
npx skillsauth add aibtcdev/skills stacking-lotteryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Provides stacking lottery pot operations on stackspot.app:
How it works: Participants join pots by contributing STX. When a pot reaches its maximum participant count, the platform contract triggers stacking via Proof of Transfer (PoX) for one full cycle. At unlock, a VRF-selected winner receives the stacking yield in sBTC. All participants (winner included) receive their original STX back.
All stacking lottery operations are mainnet-only. Write operations (join-pot, start-pot, claim-rewards, cancel-pot) require an unlocked wallet (use bun run wallet/wallet.ts unlock first).
bun run stacking-lottery/stacking-lottery.ts <subcommand> [options]
List all known stacking lottery pot contracts with their current on-chain value and lock status.
bun run stacking-lottery/stacking-lottery.ts list-pots
Output:
{
"network": "mainnet",
"potCount": 3,
"pots": [
{
"name": "Genesis",
"contract": "SPT4SQP5RC1BFAJEQKBHZMXQ8NQ7G118F335BD85.Genesis",
"maxParticipants": 2,
"minAmountStx": 20,
"currentValueUstx": "40000000",
"isLocked": false
}
]
}
Get the full on-chain state for a specific pot. Queries all read-only functions: value, participant count, lock status, configuration, pool config, and details.
bun run stacking-lottery/stacking-lottery.ts get-pot-state --contract-name <name>
Options:
--contract-name (required) — Pot contract name or full identifier (e.g., SPT4SQP5RC1BFAJEQKBHZMXQ8NQ7G118F335BD85.STXLFG or STXLFG)Contribute STX to a pot. The amount must be at least the pot's minimum. STX is locked in the contract until the pot completes its stacking cycle and all participants can withdraw. Requires an unlocked wallet.
bun run stacking-lottery/stacking-lottery.ts join-pot --contract-name <name> --amount <microStx>
Options:
--contract-name (required) — Pot contract name (e.g., STXLFG)--amount (required) — Amount to contribute in micro-STX (1 STX = 1,000,000 micro-STX)Trigger a full pot to begin stacking. Calls the platform contract which starts the PoX stacking cycle for the pot. The pot must have reached its maximum participant count. Requires an unlocked wallet.
bun run stacking-lottery/stacking-lottery.ts start-pot --contract-name <name>
Options:
--contract-name (required) — Pot contract name to start stackingClaim sBTC rewards if the active wallet was selected as the VRF winner for a completed pot. Non-winners receive no sBTC but do get their STX back via the same mechanism. Requires an unlocked wallet.
bun run stacking-lottery/stacking-lottery.ts claim-rewards --contract-name <name>
Options:
--contract-name (required) — Pot contract name to claim rewards fromCancel a pot before it starts stacking. Allows participants to recover their contributed STX. The pot must not yet be locked (stacking must not have started). Requires an unlocked wallet.
bun run stacking-lottery/stacking-lottery.ts cancel-pot --contract-name <name>
Options:
--contract-name (required) — Pot contract name to cancelbun run wallet/wallet.ts unlock first).bun run stacking/stacking.ts get-pox-info.SPT4SQP5RC1BFAJEQKBHZMXQ8NQ7G118F335BD85. The platform contract SP7FSE31MWSJJFTQBEQ1TT6TF3G4J6GDKE81SWD9.stackspots orchestrates starting pots and distributing rewards.development
Web of Trust operations for Nostr pubkeys — trust scoring, sybil detection, trust path analysis, neighbor discovery, follow recommendations, and network health. Free tier (wot.klabo.world, 50 req/day) with paid fallback (maximumsats.com, 100 sats via L402). Covers 52K+ pubkeys and 2.4M+ zap-weighted trust edges. Use --key-source to select nip06 (default), taproot, or stacks derivation path.
data-ai
BTC ordinals marketplace operations via Magic Eden — browse active listings, list inscriptions for sale via PSBT flow, submit signed listings, buy inscriptions, and cancel active listings. BTC ordinals only (not Solana). Mainnet-only.
testing
Pay-per-call access to LunarCrush social and market intelligence (Galaxy Score, AltRank, market cap rank, price, 24h change) via x402 on Stacks. USD-pegged pricing recomputed hourly from live STX/USD. Mainnet endpoint live; testnet supported.
devops
Detects HODLMM LP inventory drift (token-ratio imbalance from one-sided swap flow) and restores the target ratio via a corrective Bitflow swap plus a hodlmm-move-liquidity redeploy, gated by the 4h per-pool cooldown.