use std::sync::Arc; use anyhow::Result; use breez_sdk_core::*; async fn send_payment(sdk: Arc) -> Result<()> { // ANCHOR: send-payment // The `amount_msat` param is optional and should only passed if the bolt11 doesn't specify an amount. // The amount_msat is required in case an amount is not specified in the bolt11 invoice'. let amount_msat: Option = None; let req = SendPaymentRequest { bolt11: "...".into(), amount_msat, }; let response = sdk.send_payment(req).await?; // ANCHOR_END: send-payment Ok(()) }