A service for managing Lightning Terminal via litd
, lnd
, pool
, faraday
, loop
, and tapd
RPC API's.
LiT: v0.12.1-alpha
LND: v0.17.1-beta
TAPD: v0.3.1-alpha
Loop: v0.26.5-beta
Pool: v0.6.4-beta
Faraday: v0.2.11-alpha
Ensure you are downloading the protos from the tagged branch that matches the version of the Tapd instance running in the deployed LiT bundle.
Currently requiring
# LND
lightning.proto
# TAPD
taprootassets.proto
assetwalletrpc/assetwallet.proto
mintrpc/mint.proto
universerpc/universe.proto
https://raw.githubusercontent.com/lightningnetwork/lnd/v0.17.1-beta/lnrpc/lightning.proto
https://raw.githubusercontent.com/lightninglabs/taproot-assets/v0.3.1/taprpc/taprootassets.proto
https://raw.githubusercontent.com/lightninglabs/taproot-assets/v0.3.1/taprpc/assetwalletrpc/assetwallet.proto
https://raw.githubusercontent.com/lightninglabs/taproot-assets/v0.3.1/taprpc/mintrpc/mint.proto
https://raw.githubusercontent.com/lightninglabs/taproot-assets/v0.3.1/taprpc/universerpc/universe.proto
Template
curl -o ./proto/< RPC NAME >.proto https://raw.githubusercontent.com/lightninglabs/< DAEMON REPO >/< VERSION TAG >/< RPC NAME >/< RPC NAME >.proto
Example
curl -o ./lit/proto/assetwallet.proto https://raw.githubusercontent.com/lightninglabs/taproot-assets/v0.3.1/taprpc/assetwalletrpc/assetwallet.proto
Template
lnd/bin/python -m grpc_tools.protoc -I ./proto/ --proto_path=googleapis:. --mypy_out=./app/lit --python_out=./app/lit --grpc_python_out=./app/lit < RPC NAME >.proto
Example
lnd/bin/python -m grpc_tools.protoc -I ./proto/ --proto_path=googleapis:. --mypy_out=./app/lit --python_out=./app/lit --grpc_python_out=./app/lit ./proto/taprootassets.proto
Bulk
lnd/bin/python -m grpc_tools.protoc -I ./proto/ --proto_path=googleapis:. --mypy_out=./app/lit --python_out=./app/lit --grpc_python_out=./app/lit ./proto/*.proto
``
[ TODO ] - automatic and check security assumptions.
According to https://github.com/lightningnetwork/lnd/blob/master/docs/grpc/python.md
,
tlsextraip
or tlsextradomain
should be set with lit.conf
. That will create tls.cert
s
that accomodate remote access.
scp < user >@< node ip >:/< path >/< to >/Lnd/tls.key .
scp < user >@< node ip >:/< path >/< to >/Lnd/tls.cert .
scp < user >@< node ip >:/< path >/< to >/Lnd/data/chain/bitcoin/< mode >/admin.macaroon
And then one last for Tapd
scp < user >@< node ip >:/< path >/< to >/Tapd/data/< mode >/admin.macaroon .
python -m app.demo.demo