Last active
January 29, 2022 19:38
-
-
Save jaonoctus/c120fe10d16c203960317edc34441027 to your computer and use it in GitHub Desktop.
BOS command for Docker/BTCPayServer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker run -it --rm \ | |
--network="generated_default" \ | |
-v $HOME/.bos:/home/node/.bos \ | |
-e BOS_DEFAULT_SAVED_NODE=YOUR_NODE_NAME \ | |
alexbosworth/balanceofsatoshis "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BOS Installation
~/.bos/
~/.bos/YOUR_NODE_NAME/credentials.json
with the following content:To get the strings for cert and macaroon,
$ base64 /var/lib/docker/volumes/generated_lnd_bitcoin_datadir/_data/tls.cert | tr -d '\n'
$ base64 /var/lib/docker/volumes/generated_lnd_bitcoin_datadir/_data/admin.macaroon | tr -d '\n'
Command
/usr/local/bin/bos
$ chmod +x /usr/local/bin/bos
Usage
and then you'll be able to do just
$ bos report
or$ bos price usd
for example