pub struct BridgeToCashAppRequest {
pub recipient: String,
pub route: CrossChainRoutePair,
pub amount: u128,
pub fee_policy: Option<FeePolicy>,
pub refund_address: String,
pub max_slippage_bps: Option<u32>,
}Expand description
Deprecated. Use CreateBridgeRequest with the bridging client’s
bridge_to_cash_app.
Request to bridge USDC/USDT from an external chain to a Cash App user.
The payer deposits the stablecoin to the returned address, and the cross-chain provider pays the recipient in Bitcoin over Lightning. No funds move through the Spark wallet. Only available on mainnet.
Fields§
§recipient: StringThe Cash App user, as a username (alice or $alice) or a Cash App
Lightning address (alice@cash.app).
route: CrossChainRoutePairThe source route from calling get_cross_chain_routes() with the
CrossChainRouteFilter::Receive filter and its delivery_method set to
Lightning. Selects the source chain + asset (e.g. USDC on Base).
amount: u128Amount in the source asset’s base units, per the route’s decimals.
These routes carry 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 about this value in
Bitcoin. 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).
refund_address: StringThe payer’s address on the source chain. The deposit is refunded here if the recipient can’t be paid.
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 BridgeToCashAppRequest
impl Clone for BridgeToCashAppRequest
Source§fn clone(&self) -> BridgeToCashAppRequest
fn clone(&self) -> BridgeToCashAppRequest
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 BridgeToCashAppRequest
impl RefUnwindSafe for BridgeToCashAppRequest
impl Send for BridgeToCashAppRequest
impl Sync for BridgeToCashAppRequest
impl Unpin for BridgeToCashAppRequest
impl UnsafeUnpin for BridgeToCashAppRequest
impl UnwindSafe for BridgeToCashAppRequest
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