Registry / networking / lnp-rpc

lnp-rpc

JSON →
library0.9.1rscratesunverified

LNP node RPC API for interacting with Lightning Network Protocol nodes.

# Cargo.toml [dependencies] lnp_rpc = "0.9.1"
INSTALL
IMPORT
SIG · LNP-RPC
L
lnp-rpc
networkingrustv0.9.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use lnp_rpc::Client;

Connect to an LNP node and fetch node information.

use lnp_rpc::Client; #[tokio::main] async fn main() { let client = Client::new("http://localhost:8080").unwrap(); let info = client.get_info().await.unwrap(); println!("Node info: {:?}", info); }
Debug
Known issues
gotchaRequires an async runtime like Tokio.
fix
Add `tokio` with the `full` feature to your dependencies.
affects: >=0.9.0
Upgrade
Version history
0.9.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
lnp-rpc — cargo add lnp-rpc · libregistry