Skip to main content

Macabake

A tool for creating custom macaroons

LND Config Environment Variables

Put these environment variables into your path

export CRED_PATH=/home/lnd_user/Documents/creds/awesome-node/lnd
export LND_CRED_PATH=/home/lnd_user/Documents/creds/awesome-node/lnd
export LND_NODE_IP=awesome-node.m.voltageapp.io
export LND_NODE_PORT=10009

This script expects there to be a valid admin.macaroon and a tls.cert file located at CRED_PATH/LND_CRED_PATH.

Example

Bake a custom macaroon

macabake bakemacaroon \
    --apis Lightning OpenChannel \
    --apis Lightning SubscribeChannelEvents \
    --apis Lightning ConnectPeer \
    --output_filename=mycustommacaroon.macaroon

The macaroon is saved into the same directory as admin.macaroon, which is at the $CRED_PATH environment variable. The --apis flag can be passed multiple times, and is two strings: Subsystem API_name. The subsystems are listed on the LND docs website, like in the image below or using the command:

macabake list-lnd-subsystems

You can view which APIs are in each subsystem like so:

macabake list-lnd-apis --subsystem WalletKit

LND Subsystems from LND Docs

Link to LND API Docs: LND Docs Example

Metadata

Release files for macabake 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for macabake 0.0.3
File Interpreter ABI Platform
macabake-0.0.3-py3-none-any.whl Python 3 none any Details

Release files / macabake-0.0.3-py3-none-any.whl

Download URL macabake-0.0.3-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fea4c79705a40a663eb01c6e86cc640630f31ef501f711b7c0a9ee98126ecb6e
BLAKE2b-256 checksum
How to use checksums
4de78b608dfb5baabcf87f03c2053046819c29cf33174bf1e282b666679cdca8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page