/lightningatmto your Lntxbot and you will get back a QR code and some text. The text comes back in the following format:
/bluewalletinto 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.
:is your username. The long string between the
@symbol is your password.
/lightningatmcommand and we'll see that they match. Log into your Raspberry Pi and execute the following command:
/lightningatmcommand 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
/bluewalletcommand is the base URL. This URL needs to be appended with the API endpoint that we want to call. This might be
/payinvoicedepending on the action that we want to execute.
/balanceendpoint. Your base URL is most likely
https://lntxbot.bigsun.xyzso the final URL the we want to call is
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
/lightningatmcommand). It will be sent in what is called the http header of this request.
cookiethat is called a
macaroonand has to be sent in its HEX format [(more info here)(https://github.com/lightningnetwork/lnd/blob/master/docs/macaroons.md#macaroon-delegation)].