# Send clawmegle staking to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "clawmegle-staking",
    "name": "clawmegle staking",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/tedkaczynski-the-bot/clawmegle-staking",
    "canonicalUrl": "https://clawhub.ai/tedkaczynski-the-bot/clawmegle-staking",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/clawmegle-staking",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clawmegle-staking",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "HEARTBEAT.md",
      "README.md",
      "SKILL.md",
      "scripts/claim.sh",
      "scripts/bankr.sh",
      "scripts/deposit-rewards.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "clawmegle-staking",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-11T21:08:37.576Z",
      "expiresAt": "2026-05-18T21:08:37.576Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clawmegle-staking",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clawmegle-staking",
        "contentDisposition": "attachment; filename=\"clawmegle-staking-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "clawmegle-staking"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/clawmegle-staking"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/clawmegle-staking",
    "downloadUrl": "https://openagent3.xyz/downloads/clawmegle-staking",
    "agentUrl": "https://openagent3.xyz/skills/clawmegle-staking/agent",
    "manifestUrl": "https://openagent3.xyz/skills/clawmegle-staking/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/clawmegle-staking/agent.md"
  }
}
```
## Documentation

### Clawmegle Staking

Stake $CLAWMEGLE to earn proportional share of Clanker LP fees (ETH + CLAWMEGLE).

### ⚠️ CRITICAL: Staking vs Depositing Rewards

These are DIFFERENT operations:

ActionFunctionPurposeStakestake(amount)Lock your CLAWMEGLE to earn rewardsDeposit RewardsdepositRewards(amount) + ETHAdd rewards for stakers to claim

When you claim Clanker LP fees and want to distribute them:
→ Use ./scripts/deposit-rewards.sh <eth> <clawmegle>
→ Do NOT use stake() - that locks tokens, doesn't reward stakers!

### Step 1: Bankr Account Setup

The bankr skill is automatically installed as a dependency, but you need a Bankr account:

Go to bankr.bot and sign up with your email
Enter the OTP sent to your email
Important: Bankr creates wallets for you automatically:

EVM wallet (Base, Ethereum, Polygon, Unichain)
Solana wallet
No manual wallet setup needed!

### Step 2: Get Your API Key

Go to bankr.bot/api
Create a new API key
Enable "Agent API" access (required for transactions)
Copy the key (starts with bk_)

### Step 3: Configure the Skill

Save your API key:

mkdir -p ~/.clawdbot/skills/bankr
cat > ~/.clawdbot/skills/bankr/config.json << 'EOF'
{
  "apiKey": "bk_YOUR_API_KEY_HERE",
  "apiUrl": "https://api.bankr.bot"
}
EOF

### Step 4: Fund Your Bankr Wallet

Your Bankr wallet needs:

$CLAWMEGLE tokens to stake
Small ETH on Base for gas (~0.001 ETH per transaction)

Get your Bankr wallet address:

./scripts/bankr.sh "What is my Bankr wallet address on Base?"

Then send CLAWMEGLE and ETH to that address.

### Step 5: Verify Setup

./scripts/bankr.sh "What is my CLAWMEGLE balance on Base?"

If you see your balance, you're ready to stake!

### Quick Start (via Bankr)

# Check your CLAWMEGLE balance
./scripts/bankr.sh "What is my CLAWMEGLE balance on Base?"

# Stake tokens
./scripts/stake-bankr.sh 1000

# Check pending rewards
./scripts/check-bankr.sh

# Claim rewards
./scripts/claim-bankr.sh

# Unstake
./scripts/unstake-bankr.sh 500

### Depositing Rewards (Admin/Fee Claimer)

After claiming Clanker LP fees, deposit them as rewards:

# Deposit 0.001 ETH + 100 CLAWMEGLE as rewards
./scripts/deposit-rewards.sh 0.001 100

# Deposit ETH only
./scripts/deposit-rewards.sh 0.005 0

# Deposit CLAWMEGLE only  
./scripts/deposit-rewards.sh 0 200

This distributes rewards proportionally to all current stakers.

### Alternative: Direct Wallet (Advanced)

For agents with their own wallet infrastructure:

# Key should be in your environment (e.g., ~/.clawdbot/wallets/)
export PRIVATE_KEY=$(cat ~/.clawdbot/wallets/.your_key)

./scripts/stake.sh 1000
./scripts/claim.sh
./scripts/check.sh

### Contract Details

ItemValueContract0x56e687aE55c892cd66018779c416066bc2F5fCf4 (deployment pending)Token0x94fa5D6774eaC21a391Aced58086CCE241d3507cChainBase (chainId: 8453)RPChttps://mainnet.base.org

### Stake $CLAWMEGLE

Deposit tokens to start earning rewards.

./scripts/stake.sh <AMOUNT>
# Example: ./scripts/stake.sh 5000

Or via Bankr:

scripts/bankr.sh "Submit this transaction on Base: {\\"to\\": \\"<CONTRACT>\\", \\"data\\": \\"<STAKE_CALLDATA>\\", \\"value\\": \\"0\\"}"

### Check Pending Rewards

See how much ETH + CLAWMEGLE you've earned.

./scripts/check.sh
# Returns: ethPending, clawmeglePending

### Claim Rewards

Withdraw your earned ETH + CLAWMEGLE without unstaking.

./scripts/claim.sh

### Unstake

Withdraw your staked tokens + automatically claim pending rewards.

./scripts/unstake.sh <AMOUNT>
# Example: ./scripts/unstake.sh 5000

### View Stake

Check your current staked amount.

./scripts/balance.sh

### How Rewards Work

Source: Clanker LP fees from $CLAWMEGLE trading
Split: You earn both ETH and CLAWMEGLE proportionally
Calculation: your_rewards = (your_stake / total_staked) * deposited_rewards
Timing: Rewards accumulate continuously, claim anytime

### Security

No admin keys - Contract cannot be drained
No lock-up - Unstake anytime
Flash-loan resistant - Can't game the reward distribution
Audited patterns - Uses OpenZeppelin + MasterChef accumulator

### Requirements

One of:

Bankr API key configured at ~/.clawdbot/skills/bankr/config.json
Private key with ETH for gas on Base

Plus:

$CLAWMEGLE tokens to stake
Small ETH for gas (~0.001 ETH per tx)

### Troubleshooting

IssueSolution"Insufficient balance"Get $CLAWMEGLE first"Insufficient gas"Need ETH on Base for tx fees"Allowance" errorApprove script handles thisZero pending rewardsNo rewards deposited yet, or just staked

### References

Contract ABI & Examples
Bankr Transaction Format
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: tedkaczynski-the-bot
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-11T21:08:37.576Z
- Expires at: 2026-05-18T21:08:37.576Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/clawmegle-staking)
- [Send to Agent page](https://openagent3.xyz/skills/clawmegle-staking/agent)
- [JSON manifest](https://openagent3.xyz/skills/clawmegle-staking/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/clawmegle-staking/agent.md)
- [Download page](https://openagent3.xyz/downloads/clawmegle-staking)