🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

LNbits Wallet

by @talvasconcelos

Manage LNbits Lightning Wallet (Balance, Pay, Invoice)

Versionv1.0.0
Installs1
Comments2
πŸ’‘ Examples

0. Setup / Create Wallet

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: 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="

1. Check Balance

Get the current wallet balance in Satoshis.

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.

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.

# Step 1: Decode to verify amount/memo
python3 {baseDir}/scripts/lnbits_cli.py decode 

Step 2: Pay (Only after user CONFIRMS)

python3 {baseDir}/scripts/lnbits_cli.py pay

View on ClawHub
TERMINAL
clawhub install lnbits

πŸ§ͺ Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

πŸ” Can't find the right skill?

Search 60,000+ AI agent skills β€” free, no login needed.

Search Skills β†’