🧓 ปู่ชวนไปเที่ยว
🎮 เล่นเกมส์
⏰ Time:
🌡️ Temp: Loading...

📌 list of key lncli commands for managing your LND node, categorized by function:

โดย puk

2025-09-08 21:36

list of key lncli commands for managing your LND node, categorized by function: 🛠️ Core Setup & Initialization Create Wallet: bash Line Wrapping Collapse Copy 1 lncli create --noseedbackup # Creates a new wallet (backup seed phrase!) Unlock Wallet: bash Line Wrapping Collapse Copy 1 lncli unlock --password=<your_password> # Unlock wallet for transactions 📊 Monitoring & Status Node Info: bash Line Wrapping Collapse Copy 1 lncli getinfo # Displays node status, pubkey, and network sync info List Channels: bash Line Wrapping Collapse Copy 1 lncli listchannels # Shows active/pending/inactive channels List Peers: bash Line Wrapping Collapse Copy 1 lncli listpeers # Connected nodes (peers) Forwarding History: bash Line Wrapping Collapse Copy 1 lncli forwardinghistory # Tracks routed payments through your node ⚡️ Channel Management Open Channel: bash Line Wrapping Collapse Copy 1 lncli openchannel --node_key=<peer_pubkey> --local_amt=<sat_amount> Close Channel: bash Line Wrapping Collapse Copy 1 lncli closechannel --channel_point=<channel_id>[:index] --force # Force-close if needed Force Close (Cooperative): bash Line Wrapping Collapse Copy 1 lncli cooperativelyclosechannel --channel_point=<channel_id>[:index] 💸 Payments & Routing Send Payment: bash Line Wrapping Collapse Copy 1 lncli sendpayment --dest=<recipient_pubkey> --amt=<sat_amount> Receive Payment: Generate a Lightning Address (LNURL) for others to pay you. List Payments: bash Line Wrapping Collapse Copy 1 lncli listpayments # View sent/received payments 👥 Peer Management Connect to Peer: bash Line Wrapping Collapse Copy 1 lncli connect --pubkey=<peer_pubkey>@[ip_or_tor]> # Add a new peer Disconnect Peer: bash Line Wrapping Collapse Copy 1 lncli disconnect --pubkey=<peer_pubkey> ⚙️ Advanced Configuration Set Fees: bash Line Wrapping Collapse Copy 1 lncli updatechanpolicy --base_fee_msat=<base_fee> --fee_rate=<fee_per_million> --time_lock_delta=<lock_time> Backup Wallet: bash Line Wrapping Collapse Copy 1 lncli exportall # Exports wallet seed and channel backups ❗ Important Notes Safety First: Always back up your seed phrase (lncli exportall). Test Networks: Use testnet (add --testnet) for experimentation. RPC Access: Some commands require unlocked wallet (use unlock).

💬 ความคิดเห็น 0

🌟 ยังไม่มีความคิดเห็น — คุณจะเป็นคนแรก!

🔑 เข้าสู่ระบบ เพื่อแสดงความคิดเห็น

🔙 Back Home