Balance of Satoshis

Install

1
pkg update -y
2
pkg install -y node npm nano tmux
3
npm install -g balanceofsatoshis
Copied!

Export the connection string

1
/bin/sh
2
pkg install -y base64
3
4
LAN_IP=$(ifconfig | grep broadcast | awk '{print $2}')
5
CERT=$(base64 /var/db/lnd/tls.cert | tr -d '\n')
6
MACAROON=$(base64 /var/db/lnd/data/chain/bitcoin/mainnet/admin.macaroon | tr -d '\n')
7
echo "{ \"cert\": \"$CERT\", \"macaroon\": \"$MACAROON\", \"socket\": \"$LAN_IP:10009\"}"
Copied!

Import to bos

  • choose a name to indentify your node in bos
1
NODE_NAME="something_short"
Copied!
  • create a credential json
1
mkdir -p ~/.bos/$NODE_NAME/
Copied!
  • paste the connection string exported above to ~/.bos/$NODE_NAME/credentials.json with nano or run:
1
echo "{ \"cert\": \"$CERT\", \"macaroon\": \"$MACAROON\", \"socket\": \"$LAN_IP:10009\"}" | tee -a ~/.bos/$NODE_NAME/credentials.json
Copied!

Run

1
bos peers --node $NODE_NAME
Copied!
Last modified 26d ago