MCPcopy Create free account
hub / github.com/ElementsProject/lightning / get_info

Method get_info

plugins/lsps-plugin/src/core/client.rs:39–47  ·  view source on GitHub ↗
(
        &self,
        peer: &PublicKey,
        token: Option<String>,
    )

Source from the content-addressed store, hash-verified

37// LSPS2 Implementation
38impl<T: Transport> LspsClient<T> {
39 pub async fn get_info(
40 &self,
41 peer: &PublicKey,
42 token: Option<String>,
43 ) -> Result<JsonRpcResponse<Lsps2GetInfoResponse>, transport::Error> {
44 self.transport
45 .request(peer, &Lsps2GetInfoRequest { token }.into_request())
46 .await
47 }
48
49 pub async fn buy(
50 &self,

Callers 1

on_lsps_lsps2_getinfoFunction · 0.80

Calls 2

requestMethod · 0.80
into_requestMethod · 0.80

Tested by

no test coverage detected