We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01a2448 commit 795b047Copy full SHA for 795b047
lightning-block-sync/src/rest.rs
@@ -16,6 +16,8 @@ pub struct RestClient {
16
17
impl RestClient {
18
/// Creates a new REST client connected to the given endpoint.
19
+ ///
20
+ /// The endpoint should contain the REST path component (e.g., http://127.0.0.1:8332/rest).
21
pub fn new(endpoint: HttpEndpoint) -> std::io::Result<Self> {
22
let client = HttpClient::connect(&endpoint)?;
23
Ok(Self { endpoint, client })
0 commit comments