We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e58bc02 commit 4bcdc95Copy full SHA for 4bcdc95
src/payment/bolt12.rs
@@ -450,4 +450,13 @@ impl Bolt12Payment {
450
451
Ok(maybe_wrap(refund))
452
}
453
+
454
+ /// Retrieve an [`Offer`] for receiving async payments as an often-offline recipient. Will only return an offer if
455
+ /// [`Builder::set_paths_to_static_invoice_server`] was called and we succeeded in interactively building a
456
+ /// [`StaticInvoice`] with the static invoice server.
457
+ ///
458
+ /// Useful for posting offers to receive payments later, such as posting an offer on a website.
459
+ pub fn get_async_receive_offer(&self) -> Result<Offer, ()> {
460
+ self.channel_manager.get_async_receive_offer()
461
+ }
462
0 commit comments