⚡
Lightning Node Management
🇺🇸 English
🇺🇸 English
  • Contents
  • Lightning basics
  • Create inbound liquidity
  • Create outbound liquidity
  • Comparison table of software implementations
  • Comparison table of lightning channel markets
  • Node Types
    • Merchant
    • Spending
    • Routing
  • Advanced Tools
    • lnd.conf example
    • Advanced and automated fee settings
    • Set up an LND watchtower and connect a client
    • Methods to create a balanced channel with a trusted peer
    • Pool usage notes
    • Bos Score
  • Technicals
    • Connecting to a lightning node remotely
    • High onchain fee environment
    • Compact the LND database (channel.db)
    • Manage the LND onchain funds in Electrum Wallet
  • Recovery
    • Resources for LND
    • Resources for Core Lightning
  • Privacy
    • Resources on Lightning privacy
    • VPN tunnels
  • Hardware deployment
    • Hardware recommendations
    • RaspiBolt
    • RaspiBlitz
      • charge-lnd
      • Balance of Satoshis Telegram Bot
      • LND updates
      • Bitcoin Core updates
      • VPN and firewall setup
    • TrueNAS (FreeBSD) node
      • aliases
      • Balance of Satoshis
      • Lightning Terminal
      • Circuitbreaker
      • LNtop
      • LND notes
      • stream-lnd-htlcs
      • Suez
      • Tailscale
      • Connect Zeus
  • Donate
    • Donations
Powered by GitBook
On this page
  • Install
  • Export the connection string
  • Import to bos
  • Run
  • Update
  • Running over Tor

Was this helpful?

Edit on GitHub
  1. Hardware deployment
  2. TrueNAS (FreeBSD) node

Balance of Satoshis

Install

pkg update -y
pkg install -y node npm nano tmux
npm install -g balanceofsatoshis

Export the connection string

/bin/sh
pkg install -y base64

LAN_IP=$(ifconfig | grep broadcast | head -1 | awk '{print $2}')
CERT=$(base64 /var/db/lnd/tls.cert | tr -d '\n')
MACAROON=$(base64 /var/db/lnd/data/chain/bitcoin/mainnet/admin.macaroon | tr -d '\n')
echo "{ \"cert\": \"$CERT\", \"macaroon\": \"$MACAROON\", \"socket\": \"$LAN_IP:10009\"}"

Import to bos

  • choose a name to identify your node in bos

NODE_NAME="something_short"
  • create a credential json

mkdir -p ~/.bos/$NODE_NAME/
  • paste the connection string exported above to ~/.bos/$NODE_NAME/credentials.json with nano or run:

echo "{ \"cert\": \"$CERT\", \"macaroon\": \"$MACAROON\", \"socket\": \"$LAN_IP:10009\"}" | tee -a ~/.bos/$NODE_NAME/credentials.json

Run

bos peers --node $NODE_NAME

Update

npm install -g balanceofsatoshis

Running over Tor

  • Create the proxy file

cat <<EOF >> /root/bos_tor_proxy.json
{
   "host": "127.0.0.1",
   "port": 9050
}
EOF
  • Run:

bos telegram --connect <connection code> --use-proxy /root/bos_tor_proxy.json --use-small-units --node $NODE_NAME
PreviousaliasesNextLightning Terminal

Last updated 1 year ago

Was this helpful?