✓ Verified
✍️ Content Creation
✓ Enhanced Data
Lnbits
Manage LNbits Lightning Wallet (Balance, Pay, Invoice)
- Rating
- 3.9 (90 reviews)
- Downloads
- 7,160 downloads
- Version
- 1.0.0
Overview
Manage LNbits Lightning Wallet (Balance, Pay, Invoice)
Complete Documentation
View Source →
LNbits Wallet Manager
Enable the assistant to safely and effectively manage an LNbits Lightning Network wallet.
🛑 CRITICAL SECURITY PROTOCOLS 🛑
- NEVER Expose Secrets: Do NOT display Admin Keys, User IDs, or Wallet IDs.
- Explicit Confirmation: You MUST ask for "Yes/No" confirmation before paying.
- Check Balance First: Always call
balancebeforepayto prevent errors.
Usage
0. Setup / Create Wallet
If the user does not have an LNbits wallet, you can create one for them on the demo server.bash
python3 {baseDir}/scripts/lnbits_cli.py create --name "My Wallet"
Action:
- Run the command.
- Capture the
adminkey(Admin Key) andbase_url(defaults to https://demo.lnbits.com). - IMPORTANT: Instruct the user to save these credentials securely:
.env file:
> export LNBITS_BASE_URL=https://demo.lnbits.com
> export LNBITS_API_KEY="1. Check Balance
Get the current wallet balance in Satoshis.bash
python3 {baseDir}/scripts/lnbits_cli.py balance
2. Create Invoice (Receive)
Generate a Bolt11 invoice to receive funds.- amount: Amount in Satoshis (Integer).
- memo: Optional description.
bash
python3 {baseDir}/scripts/lnbits_cli.py invoice --amount 1000 --memo "Pizza"
3. Pay Invoice (Send)
⚠️ REQUIRES CONFIRMATION: Decode first, verify balance, ask user, then execute.bash
# 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>
Error Handling
If the CLI returns a JSON error (e.g.,{"error": "Insufficient funds"}), summarize it clearly for the user. Do not show raw stack traces.Installation
Terminal bash
openclaw install lnbits
Copied!
💻Code Examples
python3 {baseDir}/scripts/lnbits_cli.py create --name "My Wallet"
python3-basedirscriptslnbitsclipy-create---name-my-wallet.txt
**Action**:
1. Run the command.
2. Capture the `adminkey` (Admin Key) and `base_url` (defaults to https://demo.lnbits.com).
3. **IMPORTANT**: Instruct the user to save these credentials securely:
> "I've created a new wallet! Please add these to your Moltbot configuration or `.env` file:
> `export LNBITS_BASE_URL=https://demo.lnbits.com`
> `export LNBITS_API_KEY=<adminkey>`"
### 1. Check Balance
Get the current wallet balance in Satoshis.python3 {baseDir}/scripts/lnbits_cli.py balance
python3-basedirscriptslnbitsclipy-balance.txt
### 2. Create Invoice (Receive)
Generate a Bolt11 invoice to receive funds.
* **amount**: Amount in Satoshis (Integer).
* **memo**: Optional description.python3 {baseDir}/scripts/lnbits_cli.py invoice --amount 1000 --memo "Pizza"
python3-basedirscriptslnbitsclipy-invoice---amount-1000---memo-pizza.txt
### 3. Pay Invoice (Send)
**⚠️ REQUIRES CONFIRMATION**: Decode first, verify balance, ask user, then execute.example.sh
# 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>Tags
#speech_and-transcription
Quick Info
Category Content Creation
Model Claude 3.5
Complexity One-Click
Author talvasconcelos
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install lnbits
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0
✓ Verified
💻 Development
Adversarial Prompting
Adversarial analysis to critique, fix.
🧠 Claude-Ready
)}
★ 4.6 (372)
↓ 28,222
v1.0.0