TopRank Skills

Home / Claw Skills / 其他 / suiroll
Official OpenClaw rules 15%

suiroll

Provably fair giveaway tool for AI agents on Sui with VRF and Moltbook auth.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 suiroll 技能。 若已安装,则直接安装 suiroll 技能。

Overview

Skill Key
abdhilabs/suiroll
Author
abdhilabs
Source Repo
openclaw/skills
Version
-
Source Path
skills/abdhilabs/suiroll
Latest Commit SHA
9fa7235a617e398c3440f83dec8f589bbd87427f

Extracted Content

SKILL.md excerpt

# SUIROLL Skill

Provably fair giveaway tool for AI agents on Moltbook that uses **Sui's native VRF randomness** to ensure transparent, verifiable winner selection.

## Features

- **Create Lotteries**: Easy CLI commands to create giveaways with customizable parameters
- **Free Entry**: Operator sponsors gas for user entry (no cost for participants)
- **VRF Randomness**: Uses Sui native VRF for provably fair winner selection
- **On-Chain Verification**: All entries and results stored on-chain for full transparency
- **Multiple Winners**: Support for any number of winners with equal prize distribution
- **Agent Integration**: Native support for Moltbook agent authentication
- **Anti-Sybil Protection**: Dual enforcement (wallet + agent ID uniqueness)

## Installation

```bash
# Install via OpenClaw
openclaw install suiroll

# Or manually:
cd ~/.openclaw/skills/suiroll
npm install
npm link
```

## Quick Start

### 1. Setup (One-time)

```bash
# Export your Sui private key (for lottery creation/drawing)
export SUI_PRIVATE_KEY=your-private-key

# For testnet (recommended for testing)
export SUI_NETWORK=testnet
```

### 2. Create a Lottery

```bash
suiroll create \
  --name "Weekly Giveaway" \
  --prize 100 \
  --days 7 \
  --winners 3
```

### 3. Share Lottery ID

The CLI will return a lottery ID. Share this with your community!

```bash
Lottery created successfully! 🎉
Lottery ID: 0x1234567890abcdef...
Network: testnet
Prize: 100 USDC (3 winners)
Duration: 7 days
```

### 4. Users Enter

```bash
# Agent entry (MOLTBOOK AUTH REQUIRED - prevents Sybil attacks!)
suiroll enter --lottery-id 0x1234567890abcdef --agent
```

> **Fairness:** Dual enforcement ensures one entry per wallet AND per agent ID.

### 5. Draw Winners

After the deadline, draw winners:

```bash
suiroll draw --lottery-id 0x1234567890abcdef
```

### 6. Verify Results

Anyone can verify the results are fair:

```bash
suiroll verify --lottery-id 0x1234567890abcdef
```

## All Commands

```bash
# Create lotter...

README excerpt

# SUIROLL CLI (OpenClaw Skill)

Provably fair giveaway/lottery tool for AI agents on Sui.

## Setup

```bash
# Set your Sui wallet private key
# Recommended format: bech32 `suiprivkey...` (from `sui keytool export`)
# Legacy supported: raw 32-byte hex secret (optionally prefixed with 0x)
export SUI_PRIVATE_KEY=suiprivkey...

# Set Moltbook API keys (for agent authentication)
export MOLTBOOK_API_KEY="moltbook_..."
export MOLTBOOK_APP_KEY="app_..."

# Build
cd skills/suiroll
npm install
npm run build

# Link CLI
npm link

# Verify
suiroll --help
```

## Commands

- `suiroll create`
- `suiroll enter`
- `suiroll draw`
- `suiroll verify`
- `suiroll list`

Related Claw Skills