BSC Red Packet← Back

BSC Red Packet - OpenClaw Skill

Overview

BSC Red Packet is an OpenClaw Skill that allows users to send and claim BNB red packets in Discord / Telegram / QQ group chats via OpenClaw.

User says "send red packet" → OpenClaw generates creation link → User clicks to connect wallet and send → Claim link shared in chat → Others click to claim.

Quick Install

Option 1: Copy Skill Directory

Copy the skills/bsc-red-packet/ directory to your OpenClaw skills folder:

# Copy to workspace skills (highest priority)
cp -r skills/bsc-red-packet ~/.openclaw/workspace/skills/bsc-red-packet

# Or copy to global skills
cp -r skills/bsc-red-packet ~/.openclaw/skills/bsc-red-packet

Option 2: Configure extraDirs

Add the skills directory to ~/.openclaw/openclaw.json:

{
  "skills": {
    "load": {
      "extraDirs": ["/path/to/bsc-red-packet/skills"]
    }
  }
}

Verify Installation

openclaw skills list

You should see bsc-red-packet in the list.

Usage

Once installed, users can use it in any OpenClaw-connected group chat:

Send Red Packet

@bot 发一个 0.05 BNB 的红包,分成 10 份
@bot send a 0.01 BNB red packet for 5 people
@bot 发红包 0.1 BNB 3个

OpenClaw will generate a pre-filled creation link:

https://bsc-lucky-money.claude5.com/?amount=0.05&count=10&message=恭喜发财

Claim Red Packet

When the creator shares the claim link in the chat:

https://bsc-lucky-money.claude5.com/packet/42

Others click the link, connect wallet, and claim.

Check Status

@bot 红包 #42 的状态是什么?
@bot check red packet 42

URL Parameters

The DApp supports URL parameters for pre-filling the creation form:

ParamDescriptionExample
amountBNB amount0.01
countNumber of shares (1-100)5
messageBlessing message (URL encoded)Happy New Year!

Prerequisites

  • MetaMask wallet or other Web3 wallet
  • Connected to BNB Smart Chain (Chain ID: 56) or BSC Testnet (Chain ID: 97)
  • Enough BNB for red packet amount + gas fee

Smart Contract

ItemValue
ContractRedPacket.sol (Solidity 0.8.19)
NetworkBSC Mainnet (56) / BSC Testnet (97)
Expiry24 hours
Max shares100 per packet
DistributionEqual split
RefundCreator can refund unclaimed BNB after expiry