pub struct PreparePaymentLinkRequest {
pub address: String,
pub route: CrossChainRoutePair,
pub amount: u128,
pub fee_policy: Option<FeePolicy>,
pub max_slippage_bps: Option<u32>,
}Expand description
Request for a payment link that sends USDC/USDT to an external-chain recipient, funded by Cash App over Lightning.
The user pays the returned URL, and the cross-chain provider delivers the
stablecoin to address. No funds move through the Spark wallet. Only
available on mainnet.
Fields§
§address: StringRecipient address on the destination chain (e.g. an EVM 0x... address).
route: CrossChainRoutePairThe destination route from calling get_cross_chain_routes() with the
CrossChainRouteFilter::PaymentLink filter. Selects the destination chain
- asset (e.g. USDC on Base).
amount: u128Amount in the destination asset’s base units, per the route’s
decimals. These routes deliver USD-pegged stablecoins, so at parity
this is the USD value: 1_000_000 is 1 USDC (6 decimals), about $1.
With the default fee policy the recipient receives this net amount.
With FeesIncluded it is the amount the payer deposits.
fee_policy: Option<FeePolicy>Whether fees are added on top of amount (FeesExcluded, the default)
or deducted from it (FeesIncluded).
max_slippage_bps: Option<u32>Maximum slippage tolerance in basis points. Falls back to the SDK default when unset.
Trait Implementations§
Source§impl Clone for PreparePaymentLinkRequest
impl Clone for PreparePaymentLinkRequest
Source§fn clone(&self) -> PreparePaymentLinkRequest
fn clone(&self) -> PreparePaymentLinkRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PreparePaymentLinkRequest
impl RefUnwindSafe for PreparePaymentLinkRequest
impl Send for PreparePaymentLinkRequest
impl Sync for PreparePaymentLinkRequest
impl Unpin for PreparePaymentLinkRequest
impl UnsafeUnpin for PreparePaymentLinkRequest
impl UnwindSafe for PreparePaymentLinkRequest
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