Search

PythonReactSEOPDF
OpenClaw

suiroll

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

abdhilabs0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install abdhilabs/suiroll

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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

# Install via OpenClaw
openclaw install suiroll

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

Quick Start

1. Setup (One-time)
# 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
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!

Lottery created successfully! 🎉
Lottery ID: 0x1234567890abcdef...
Network: testnet
Prize: 100 USDC (3 winners)
Duration: 7 days
4. Users Enter
# 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:

suiroll draw --lottery-id 0x1234567890abcdef
6. Verify Results

Anyone can verify the results are fair:

suiroll verify --lottery-id 0x1234567890abcdef

All Commands

# Create lotter...

Source information

Source
github
Repository
openclaw/skills
Path
skills/abdhilabs/suiroll
Version
—
Commit
9fa7235a617e398c3440f83dec8f589bbd87427f
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

SUIROLL CLI (OpenClaw Skill)

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

Setup

# 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

Extracted content

SKILL.md
# 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
# 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 skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.