mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 22:04:21 +01:00
Extract rust snippets and reference them
This commit is contained in:
11
snippets/rust/src/send_payment.rs
Normal file
11
snippets/rust/src/send_payment.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use anyhow::Result;
|
||||
use breez_sdk_core::*;
|
||||
|
||||
async fn send_payment(sdk: Arc<BreezServices>) -> Result<()> {
|
||||
let bolt11 = "...";
|
||||
sdk.send_payment(bolt11.into(), None).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user