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

Method get_offer

plugins/lsps-plugin/src/core/lsps2/handler.rs:198–206  ·  view source on GitHub ↗
(
        &self,
        request: &Lsps2PolicyGetInfoRequest,
    )

Source from the content-addressed store, hash-verified

196#[async_trait]
197impl Lsps2OfferProvider for ClnApiRpc {
198 async fn get_offer(
199 &self,
200 request: &Lsps2PolicyGetInfoRequest,
201 ) -> AnyResult<Lsps2PolicyGetInfoResponse> {
202 let mut rpc = self.create_rpc().await?;
203 rpc.call_raw("lsps2-policy-getpolicy", request)
204 .await
205 .context("failed to call lsps2-policy-getpolicy")
206 }
207
208 async fn get_channel_capacity(
209 &self,

Callers 1

get_info_handlerFunction · 0.45

Calls 3

call_rawMethod · 0.80
create_rpcMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected