ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 3/5

giveaway-skills

Call guide and best practices for the BSC on-chain giveaway contract based on contracts/contracts/Giveaway.sol, including contract address, core method signatures, parameter meanings, and conventions for calling the contract from scripts, frontends, or OpenClow workflows via ethers/web3. Use this skill when you need to create giveaways, claim giveaways, manage whitelists, or withdraw expired giveaways on BSC.

Why use this skill?

Learn to manage on-chain giveaways on BSC using OpenClaw. Automate token distribution, set claim restrictions, and handle contract logic easily.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/franckstone/giveaway-skills
Or

What This Skill Does

The giveaway-skills module is an essential OpenClaw toolkit for interacting with the BSC-based Giveaway smart contract (0x0...5B9). It provides a unified interface to automate the lifecycle of on-chain giveaways on the Binance Smart Chain. Whether you are a project manager running an airdrop, a DAO leader distributing community rewards, or a developer integrating token distribution into your application, this skill abstracts the complexities of ERC-20 approvals, fee calculations, and chain-specific transaction logic. It supports various distribution models (average vs. random) and claim restrictions (public, token-holder, or whitelist), ensuring precise control over your promotional activities.

Installation

To integrate this skill into your OpenClaw environment, execute the following command in your terminal: clawhub install openclaw/skills/skills/franckstone/giveaway-skills Ensure your OpenClaw agent has a pre-configured wallet connected to the BSC mainnet (RPC: https://bsc-dataseed.binance.org) and sufficient gas tokens to facilitate contract interactions.

Use Cases

  • Token Airdrops: Create automated token distribution events where claimers must meet specific token holding criteria to prevent bots.
  • Community Incentives: Deploy random-distribution giveaways to boost engagement on BSC-based social platforms.
  • Whitelist Campaigns: Manage private giveaways for early supporters or competition winners by utilizing the whitelist restriction feature.
  • Automated Withdrawals: Programmatically recover unclaimed funds from expired giveaway pools to maintain liquidity for the next event.

Example Prompts

  1. "Create a public giveaway for 1000 USDT on BSC. Use random distribution for 50 slots, set the expiration to 48 hours from now, and ensure the content says 'Community Rewards'."
  2. "Deploy a token-holder giveaway for 500 units of my custom token. Restrict claims to users holding at least 1000 GALA tokens. Use average distribution for 100 slots."
  3. "Check the status of giveaway ID #42 and claim it using my currently connected wallet address."

Tips & Limitations

When creating a giveaway, remember that the contract deducts a fee immediately. For ERC-20 tokens, ensure you have executed an approve transaction for the contract address beforehand; failing to do so will result in transaction reverts. The amount / count must result in a value greater than zero. Note that the restrictionToken field is strictly for TOKEN_HOLDER scenarios; setting it for other modes may cause unexpected behavior. Always verify the lastDate timestamp in seconds to avoid premature or delayed expirations.

Metadata

Stars2387
Views3
Updated2026-03-09
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-franckstone-giveaway-skills": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#bsc#evm#giveaway#contract-call
Safety Score: 3/5

Flags: network-access, code-execution