pub enum SendPaymentMethod {
BitcoinAddress {
address: BitcoinAddressDetails,
fee_quote: SendOnchainFeeQuote,
},
Bolt11Invoice {
invoice_details: Bolt11InvoiceDetails,
spark_transfer_fee_sats: Option<u64>,
lightning_fee_sats: u64,
},
SparkAddress {
address: String,
fee: u128,
token_identifier: Option<String>,
},
SparkInvoice {
spark_invoice_details: SparkInvoiceDetails,
fee: u128,
token_identifier: Option<String>,
},
CrossChainAddress {
route: CrossChainRoutePair,
recipient_address: String,
amount_in: u128,
asset_amount_in: u128,
estimated_out: u128,
fee_amount: u128,
service_fee_amount: u128,
service_fee_asset: Option<String>,
source_transfer_fee_sats: u64,
fee_mode: CrossChainFeeMode,
expires_at: String,
provider_context: CrossChainProviderContext,
},
}Variants§
BitcoinAddress
Bolt11Invoice
Fields
invoice_details: Bolt11InvoiceDetailsSparkAddress
Fields
SparkInvoice
Fields
spark_invoice_details: SparkInvoiceDetailsCrossChainAddress
A cross-chain send via a bridge/swap provider.
Fields
route: CrossChainRoutePairThe route selected for this cross-chain send (includes provider, chain, asset).
amount_in: u128Amount routed to the provider, in the route’s source-asset units
(Boltz invoice sats; Orchestra deposit sats/token). On the
token-conversion path (both FeesIncluded and FeesExcluded)
the dispatcher overrides this with the wallet-side token debit
when the source token and destination asset form a USD-stable pair.
asset_amount_in: u128amount_in expressed in the cross-chain (destination) asset’s
base units, via the same rate the SDK used at prepare time.
fee_amount: u128Prepare-time total user-visible fee in cross-chain asset base units.
Covers provider spread + bridge/gas + DEX slippage. On the
token-conversion path it also rolls in the LN routing budget; on
the direct path that budget lives separately in
source_transfer_fee_sats.
fee_mode: CrossChainFeeModeFee mode the prepare ran under; the send stage matches.
provider_context: CrossChainProviderContextProvider-internal state, produced when preparing and consumed when sending.
Trait Implementations§
Source§impl Clone for SendPaymentMethod
impl Clone for SendPaymentMethod
Source§fn clone(&self) -> SendPaymentMethod
fn clone(&self) -> SendPaymentMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SendPaymentMethod
impl Debug for SendPaymentMethod
Auto Trait Implementations§
impl Freeze for SendPaymentMethod
impl RefUnwindSafe for SendPaymentMethod
impl Send for SendPaymentMethod
impl Sync for SendPaymentMethod
impl Unpin for SendPaymentMethod
impl UnsafeUnpin for SendPaymentMethod
impl UnwindSafe for SendPaymentMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request