LNBits Wallet wtih QR Code

中风险
作者:JamesTsetsekas | 审计时间:2026-02-26T09:59:20.936Z | 规则集:0.2.0

快速安装

将技能安装到你的 Agent

clawhub install lnbits-with-qrcode

技能介绍

Manage LNbits Lightning Wallet (Balance, Pay, Invoice)

使用场景

文档(原文)

来源:README.md
以下为作者原文(通常为英文)。安装请以页面顶部“快速安装”为准。

LNbits Wallet Manager Skill for OpenClaw

Enable your OpenClaw assistant to safely and effectively manage an LNbits Lightning Network wallet.

Features

  • Check Balance: Get your current wallet balance in Satoshis.
  • Create Invoice: Generate Bolt11 invoices to receive funds, with automatic QR code generation.
  • Pay Invoice: Safely pay Bolt11 invoices after confirmation and balance checks.
  • Decode Invoice: Inspect Bolt11 invoices to verify amount and memo.
  • Generate QR Code: Create a QR code image from any Bolt11 invoice string.
  • Create Wallet: Easily set up a new LNbits wallet on the demo server.

🛑 Critical Protocols for Safe Usage 🛑

To ensure secure and responsible handling of your LNbits wallet, this skill enforces strict protocols:

  1. NEVER Expose Secrets: The assistant is programmed to NEVER display Admin Keys, User IDs, or Wallet IDs in chat. Credentials are handled via environment variables.
  2. Explicit Payment Confirmation: The assistant MUST ask for "Yes/No" confirmation before sending any payment.
    • Confirmation Format: "I am about to send [Amount] sats to [Memo/Destination]. Proceed? (y/n)"
  3. Balance Check Before Pay: The assistant will always check your wallet balance before attempting to pay an invoice to prevent failed transactions.
  4. Invoice + QR Output: When generating an invoice, the assistant will ALWAYS provide:
    • The payment_request text string for easy copying.
    • An IMAGE: link to the generated QR code file on a single line, allowing direct display of the QR code.

Installation

This skill requires the qrcode[pil] Python library.

  1. Install ClawHub CLI:
    npm i -g clawhub
    
  2. Install the Skill:
    clawhub install lnbits
    

Configuration

The skill uses environment variables for LNbits API credentials. It's recommended to add these to your OpenClaw configuration or your agent's .env file.

  • LNBITS_BASE_URL: The base URL of your LNbits instance (e.g., https://legend.lnbits.com or your self-hosted URL).
  • LNBITS_API_KEY: Your LNbits wallet's Admin Key.

Example .env entries:

export LNBITS_BASE_URL=https://legend.lnbits.com
export LNBITS_API_KEY=YOUR_ADMIN_KEY_HERE

Usage Examples

Here's how you can use the lnbits skill with your OpenClaw assistant:

0. Setup / Create Wallet

If you don't have an LNbits wallet, you can create one (defaults to the demo server for ease of setup):

(User): Create a new lnbits wallet named "My OpenClaw Wallet"

The create command prints your new adminkey and base_url in the terminal output. Copy those from the command output and save them securely in your environment variables (e.g. .env). The assistant will not repeat or display the adminkey in chat.

1. Check Balance

Ask your assistant for the current balance:

(User): What's my lnbits balance?

2. Create Invoice (Receive Funds)

Generate an invoice for receiving funds:

(User): Create an invoice for 5000 sats for "Coffee"

The assistant will provide the Bolt11 invoice string and a QR code image.

2b. Generate QR Code from Existing Invoice

If you have a Bolt11 string and need a QR code:

(User): Generate a QR code for this invoice: lnbc1u1p...

3. Pay Invoice (Send Funds)

To pay an invoice, the assistant will first decode it and then ask for confirmation:

(User): Pay this invoice: lnbc1u1p...

The assistant will then prompt: "I am about to send [Amount] sats to [Memo/Dest]. Proceed? (y/n)"

Error Handling

The skill is designed to catch and summarize API errors from LNbits, providing clear feedback to the user without exposing raw technical details or stack traces.


Developed for OpenClaw - The AI Orchestration Layer

安全审计

中风险

摘要

Manage LNbits Lightning Wallet (Balance, Pay, Invoice)

风险画像 危险 隐私 范围 声誉 质量

ToxicSkills 分析

黑名单
未命中
提示词注入
未检测到

Toxic 标签

exfiltration

当前静态检测未发现 Toxic 信号。

关键风险 0 项

暂无 LLM 风险要点(LLM 未启用或无缓存)。

确定性发现(证据)

规则 严重性 文件 片段
NET_HTTP_REQUEST skills/JamesTsetsekas/lnbits-with-qrcode/scripts/lnbits_cli.py 行 9
import urllib.request
NET_HTTP_REQUEST skills/JamesTsetsekas/lnbits-with-qrcode/scripts/lnbits_cli.py 行 95
req = urllib.request.Request(url, method=method, headers=headers, data=body)
NET_HTTP_REQUEST skills/JamesTsetsekas/lnbits-with-qrcode/scripts/lnbits_cli.py 行 97
with urllib.request.urlopen(req, timeout=20) as resp:
NET_HTTP_REQUEST skills/JamesTsetsekas/lnbits-with-qrcode/scripts/lnbits_cli.py 行 140
req = urllib.request.Request(
NET_HTTP_REQUEST skills/JamesTsetsekas/lnbits-with-qrcode/scripts/lnbits_cli.py 行 146
with urllib.request.urlopen(req, timeout=20) as resp:
QUALITY_README_PRESENT README 行 无
README detected

评分标准

每个技能从 5 个维度评分,加权总分决定星级。

代码毒性 100/100 (权重 30%)
隐私风险 40/100 (权重 25%)
权限范围 90/100 (权重 20%)
作者声誉 75/100 (权重 15%)
代码质量 78/100 (权重 10%)

星级说明

5★ 安全 — 总分 ≥ 80
4★ 良好 — 总分 70–79
3★ 注意 — 总分 60–69
2★ 有风险 — 总分 40–59
1★ 危险 — 总分 < 40

为何是这个评分?

以下维度评分低于 60 分,拉低了整体评级:

  • 隐私风险: 40/100

更多技能

VettedSkillsHub

从 ClawHub(ClawdBot / OpenClaw 官方市场)精选下载量前 100 的技能,进行独立 5 维度安全审计。证据透明可查,评分可复现,一键安装。

关于

本站评分为 best-effort 静态分析,分数可复现、证据可追溯。在敏感环境中仍应进行人工审计与隔离部署。

© 2026 VettedSkillsHub。ClawdBot 和 OpenClaw 为社区项目。