Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
LND gRPC Client in Rust.
Rust 🦀 implementation of LND RPC client using async gRPC library tonic_openssl
.
About
This crate implements LND GRPC using tonic_openssl
and prost
.
Apart from being up-to-date at the time of writing (:D) it also allows async
usage.
It contains vendored *.proto
files so LND source code is not required
but accepts an environment variable LND_REPO_DIR
which overrides the vendored *.proto
files.
This can be used to test new features in non-released lnd
.
Adding to your Rust 🦀 project
cargo add lnd_grpc_rust
Usage
There's no setup needed beyond adding the crate to your Cargo.toml
.
If you need to change the *.proto
files from which the client is generated, set the environment variable LND_REPO_DIR
to a directory with cloned lnd
during build.
Here's an example of retrieving information from LND ([getinfo](https://api.lightning.community/#getinfo)
call).
You can find the same example in crate root for your convenience.
Connect function takes cert and macaroon in hex format.
use fs;
async
License
MIT