From 9cf670f7feeccbeae996a5da56b1816d9151cfb7 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 10 Jul 2022 19:14:08 +0200 Subject: [PATCH] Explain how to bake custom macaroon --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index e020497..7de1e3d 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,22 @@ vim .env # edit your config + `MAX_SEND_AMOUNT`: (default: 0 = no limit) Set maximum amount of an invoice that can be paid + `MAX_ACCOUNT_BALANCE`: (default: 0 = no limit) Set maximum balance for each account +### Macaroon + +There are two ways how to obtain hex-encoded macaroon needed for `LND_MACAROON_HEX`. + +Either you hex-encode the `admin.macaroon`: + +``` +xxd -p -c 1000 ~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon +``` + +Or you bake a new macaroon with the following permissions and use that instead: + +``` +lncli bakemacaroon info:read invoices:read invoices:write offchain:read offchain:write +``` + ## Developing ```shell