@bnonni/terminal v0.1.0
Terminal
Methods for working with the Lightning Terminal Daemon (litd). An extension of @alexbosworth/lightning.
LITD Authentication
To connect to LITD, authentication details are required.
To export your credentials, run base64 on the tls.cert and admin.macaroon files to get the encoded
authentication data to create the LITD connection. You can find these files in
the LITD directory. (~/.lit or ~/Library/Application Support/Litd)
base64 -w0 ~/.lit/tls.cert
base64 -w0 ~/.lit/mainnet/lit.macaroonYou can then use these to interact with your LITD directly.
```tsimport { authenticatedLitdGrpc } from 'terminal'; // cjs: const { authenticatedLitdGrpc } = require('terminal');
const { tapd } = authenticatedLitdGrpc({ cert: 'base64 encoded tls.cert from ~/.lit dir', macaroon: 'base64 encoded lit.macaroon from ~/.lit dir', socket: '127.0.0.1:8443', });
```Methods
TODO
10 months ago