lnbits-with-qrcodeManage LNbits Lightning Wallet (Balance, Pay, Invoice)
Install via ClawdBot CLI:
clawdbot install JamesTsetsekas/lnbits-with-qrcodeRequires:
Enable the assistant to safely and effectively manage an LNbits Lightning Network wallet.
balance before pay to prevent errors.payment_request text for copying, and (b) output MEDIA: followed by the qr_file path on ONE line. NEVER skip this.If the user does not have an LNbits wallet, you can create one for them on the demo server.
python3 {baseDir}/scripts/lnbits_cli.py create --name "My Wallet"
Action:
adminkey and base_url to stdout (visible in the terminal).adminkey or any secret from the output in your chat response. The user sees the command output in their terminal; that is the only place the key should appear. > "A new wallet was created. The command output above contains your adminkey and base_url. Copy those values from the terminal and add them to your configuration or .env as LNBITS_API_KEY and LNBITS_BASE_URL. Do not paste the adminkey here or in any chat."
Get the current wallet balance in Satoshis.
python3 {baseDir}/scripts/lnbits_cli.py balance
Generate a Bolt11 invoice to receive funds. QR code is always included by default.
# Invoice with QR code (default)
python3 {baseDir}/scripts/lnbits_cli.py invoice --amount 1000 --memo "Pizza"
# Invoice without QR code
python3 {baseDir}/scripts/lnbits_cli.py invoice --amount 1000 --memo "Pizza" --no-qr
⚠️ MANDATORY RESPONSE FORMAT: When generating an invoice, your response MUST include:
payment_request string so user can copy itMEDIA: followed by the qr_file path on ONE lineEXACT FORMAT (follow precisely):
Here is your 100 sat invoice:
lnbc1u1p5abc123...
MEDIA:./clawd/.lnbits_qr/invoice_xxx.png
CRITICAL: The MEDIA: and file path MUST be on the SAME LINE. This sends the QR code image to the user.
Convert any Bolt11 string to a QR code image file.
python3 {baseDir}/scripts/lnbits_cli.py qr <bolt11_string>
Returns: {"qr_file": "./.lnbits_qr/invoice_xxx.png", "bolt11": "..."}
⚠️ REQUIRES CONFIRMATION: Decode first, verify balance, ask user, then execute.
# Step 1: Decode to verify amount/memo
python3 {baseDir}/scripts/lnbits_cli.py decode <bolt11_string>
# Step 2: Pay (Only after user CONFIRMS)
python3 {baseDir}/scripts/lnbits_cli.py pay <bolt11_string>
If the CLI returns a JSON error (e.g., {"error": "Insufficient funds"}), summarize it clearly for the user. Do not show raw stack traces.
Generated Mar 1, 2026
A freelance developer uses the skill to generate invoices with QR codes for client payments, ensuring quick and secure Lightning Network transactions. They can check their wallet balance before sending invoices to confirm available funds and use the decode function to verify incoming payments.
A small coffee shop integrates the skill into their payment system to accept Lightning payments via QR codes at the counter. Staff can generate invoices for each sale, display QR codes for customers to scan, and confirm payments instantly, reducing transaction fees compared to traditional methods.
An event organizer uses the skill to sell tickets by generating unique invoices with QR codes for each attendee. They can manage multiple payments, check balances to track revenue, and ensure secure transactions without exposing sensitive wallet keys during the process.
A content creator employs the skill to receive micro-donations or payments for exclusive content through Lightning invoices. They generate QR codes for easy sharing on social media, monitor their earnings via balance checks, and use the pay function to tip other creators.
A charity organization utilizes the skill to collect donations by creating invoices with QR codes for campaigns. Volunteers can display QR codes at events or online, track donation totals through balance queries, and ensure transparency by avoiding exposure of admin keys.
Offer a subscription-based service where businesses use this skill integrated into a custom platform to handle Lightning payments, with features like automated invoicing and QR code generation. Revenue comes from monthly fees and transaction-based commissions.
Develop and sell integration packages for e-commerce platforms that incorporate this skill to enable Lightning payments. Businesses pay a one-time setup fee and ongoing support costs, benefiting from low-fee transactions and enhanced security protocols.
Provide workshops and toolkits teaching users how to implement this skill for personal or business use, focusing on secure wallet management and QR code generation. Revenue is generated through course fees, consulting services, and premium support packages.
💬 Integration Tip
Ensure environment variables like LNBITS_API_KEY are securely set up before use, and always follow the confirmation protocols to prevent accidental payments.
Connect Claude to Clawdbot instantly and keep it connected 24/7. Run after setup to link your subscription, then auto-refreshes tokens forever.
ERC-8004 Trustless Agents - Register, discover, and build reputation for AI agents on Ethereum. Use when registering agents on-chain, querying agent registries, giving/receiving reputation feedback, or interacting with the AI agent trust layer.
Autonomous crypto trading on Base via Bankr. Use for trading tokens, monitoring launches, executing strategies, or managing a trading portfolio. Triggers on "trade", "buy", "sell", "launch", "snipe", "profit", "PnL", "portfolio balance", or any crypto trading task on Base.
Deploy ERC20 tokens on Base using Clanker SDK. Create tokens with built-in Uniswap V4 liquidity pools. Supports Base mainnet and Sepolia testnet. Requires PRIVATE_KEY in config.
Query DeFi portfolio data across 50+ chains via Zapper's GraphQL API. Use when the user wants to check wallet balances, DeFi positions, NFT holdings, token prices, or transaction history. Supports Base, Ethereum, Polygon, Arbitrum, Optimism, and more. Requires ZAPPER_API_KEY.
Interact with Solana blockchain via Helius APIs. Create/manage wallets, check balances (SOL + tokens), send transactions, swap tokens via Jupiter, and monitor addresses. Use for any Solana blockchain operation, crypto wallet management, token transfers, DeFi swaps, or portfolio tracking.