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-packetOption 2: Configure extraDirs
Add the skills directory to ~/.openclaw/openclaw.json:
{
"skills": {
"load": {
"extraDirs": ["/path/to/bsc-red-packet/skills"]
}
}
}Verify Installation
openclaw skills listYou 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/42Others click the link, connect wallet, and claim.
Check Status
@bot 红包 #42 的状态是什么?
@bot check red packet 42URL Parameters
The DApp supports URL parameters for pre-filling the creation form:
| Param | Description | Example |
|---|---|---|
amount | BNB amount | 0.01 |
count | Number of shares (1-100) | 5 |
message | Blessing 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
| Item | Value |
|---|---|
| Contract | RedPacket.sol (Solidity 0.8.19) |
| Network | BSC Mainnet (56) / BSC Testnet (97) |
| Expiry | 24 hours |
| Max shares | 100 per packet |
| Distribution | Equal split |
| Refund | Creator can refund unclaimed BNB after expiry |