pub struct BridgeFromCashAppRequest {
pub address: String,
pub route: CrossChainRoutePair,
pub amount: u128,
pub fee_policy: Option<FeePolicy>,
pub max_slippage_bps: Option<u32>,
}Expand description
Deprecated. Use CreateBridgeRequest with the bridging client’s
bridge_from_cash_app.
Request to bridge from Cash App to USDC/USDT on an external chain.
The payer pays the returned URL in Cash App over Lightning, 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::Send filter and its delivery_method set to
Lightning. 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 BridgeFromCashAppRequest
impl Clone for BridgeFromCashAppRequest
Source§fn clone(&self) -> BridgeFromCashAppRequest
fn clone(&self) -> BridgeFromCashAppRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BridgeFromCashAppRequest
impl Debug for BridgeFromCashAppRequest
Source§impl From<PreparePaymentLinkRequest> for BridgeFromCashAppRequest
impl From<PreparePaymentLinkRequest> for BridgeFromCashAppRequest
Source§fn from(request: PreparePaymentLinkRequest) -> Self
fn from(request: PreparePaymentLinkRequest) -> Self
Auto Trait Implementations§
impl Freeze for BridgeFromCashAppRequest
impl RefUnwindSafe for BridgeFromCashAppRequest
impl Send for BridgeFromCashAppRequest
impl Sync for BridgeFromCashAppRequest
impl Unpin for BridgeFromCashAppRequest
impl UnsafeUnpin for BridgeFromCashAppRequest
impl UnwindSafe for BridgeFromCashAppRequest
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