0.1.0 • Published 10 months ago

@bnonni/terminal v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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.macaroon

You can then use these to interact with your LITD directly.

```ts

import { 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