Tonic LND client
Rust implementation of LND RPC client using async GRPC library tonic.
About
Warning: this crate is in early development and may have unknown problems! Review it before using with mainnet funds!
This crate implements LND GRPC using tonic and prost.
Apart from being up-to-date at the time of writing (:D) it also allows aync usage.
It contains vendored rpc.proto file so LND source code is not required
but accepts an environment variable LND_REPO_DIR which overrides the vendored rpc.proto file.
This can be used to test new features in non-released lnd.
(Actually, the motivating project using this library is that case. :))
Usage
There's no setup needed beyond adding the crate to your Cargo.toml.
If you need to change the rpc.proto input set the environment variable LND_REPO_DIR to the directory with cloned lnd during build.
Here's an example of retrieving information from LND (getinfo call).
You can find the same example in crate root for your convenience.
// This program accepts three arguments: address, cert file, macaroon file
// The address must start with `https://`!
async
MSRV
Undetermined yet, please make suggestions.
License
MITNFA