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

Method get_offer

plugins/lsps-plugin/src/cln_adapters/rpc.rs:189–197  ·  view source on GitHub ↗
(
        &self,
        request: &Lsps2PolicyGetInfoRequest,
    )

Source from the content-addressed store, hash-verified

187#[async_trait]
188impl Lsps2OfferProvider for ClnApiRpc {
189 async fn get_offer(
190 &self,
191 request: &Lsps2PolicyGetInfoRequest,
192 ) -> Result<Lsps2PolicyGetInfoResponse> {
193 let mut rpc = self.create_rpc().await?;
194 rpc.call_raw("lsps2-policy-getpolicy", request)
195 .await
196 .context("failed to call lsps2-policy-getpolicy")
197 }
198
199 async fn get_channel_capacity(
200 &self,

Callers

nothing calls this directly

Calls 2

call_rawMethod · 0.80
create_rpcMethod · 0.45

Tested by

no test coverage detected