/lightningatm
to your Lntxbot and you will get back a QR code and some text. The text comes back in the following format:/bluewallet
into your Lntxbot, you will get to see your username and password (don't get confused about the command "bluewallet", this is just because Lntxbots API is compatible with a piece of software from bluewallet called LndHUB.lndhub://
an the :
is your username. The long string between the :
and the @
symbol is your password./lightningatm
command and we'll see that they match. Log into your Raspberry Pi and execute the following command:/lightningatm
command and you will see that this result is the same. You just manually encoded your username and password in base64 with the above command.@
symbol from the /bluewallet
command is the base URL. This URL needs to be appended with the API endpoint that we want to call. This might be /balance
or /payinvoice
depending on the action that we want to execute./balance
endpoint. Your base URL is most likely https://lntxbot.bigsun.xyz
so the final URL the we want to call is https://lntxbot.bigsun.xyz/balance
.cURL
(client for URLs). Not only do we need to call the correct URL but we also have to supply the username and password. Username and password will be sent in the base64 encoded format (as you've done above and can get from the /lightningatm
command). It will be sent in what is called the http header of this request.cookie
that is called a macaroon
and has to be sent in its HEX format [(more info here)(https://github.com/lightningnetwork/lnd/blob/master/docs/macaroons.md#macaroon-delegation)].nano ~/.lightningATM/config.ini
.