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

Method list_protocols

plugins/lsps-plugin/src/core/client.rs:27–34  ·  view source on GitHub ↗
(
        &self,
        peer: &PublicKey,
    )

Source from the content-addressed store, hash-verified

25// LSPS0 Implementation
26impl<T: Transport> LspsClient<T> {
27 pub async fn list_protocols(
28 &self,
29 peer: &PublicKey,
30 ) -> Result<JsonRpcResponse<Lsps0listProtocolsResponse>, transport::Error> {
31 self.transport
32 .request(peer, &Lsps0listProtocolsRequest {}.into_request())
33 .await
34 }
35}
36
37// LSPS2 Implementation

Callers 1

on_lsps_listprotocolsFunction · 0.80

Calls 2

requestMethod · 0.80
into_requestMethod · 0.80

Tested by

no test coverage detected