Registry / networking / cln-rpc

cln-rpc

JSON →
library0.6.0rscratesunverified

An async RPC client for Core Lightning (CLN).

# Cargo.toml [dependencies] cln-rpc = "0.6.0"
INSTALL
IMPORT
SIG · CLN-RPC
C
cln-rpc
networkingrustv0.6.0
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 cln_rpc::Client;

Connects to a Core Lightning node via RPC.

use cln_rpc::Client; #[tokio::main] async fn main() { let client = Client::new("tcp://127.0.0.1:9835").await.unwrap(); println!("Connected to CLN"); }
Debug
Known issues
gotchaRequires an async runtime like Tokio.
fix
Add `tokio = { version = "1", features = ["full"] }` to Cargo.toml and use #[tokio::main].
affects: >=0.6.0
Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
Amazon
1
OpenAI (training)
1
Resources
cln-rpc — cargo add cln-rpc · libregistry