pub struct TransferQuoteResponse {
pub amount_type: Option<AmountType>,
pub destination: TokenTransferDestination,
pub estimated_fees: Vec<FeeLineItem>,
pub estimated_gas: Option<Gas>,
pub estimated_output_amount: String,
pub expires_at: f64,
pub source: TokenTransferSource,
}Expand description
Response containing a quote for a cross-asset or cross-chain (DADC) transfer.
JSON schema
{
"title": "TransferQuoteResponse",
"description": "Response containing a quote for a cross-asset or
cross-chain (DADC) transfer.",
"examples": [
{
"destination": {
"address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"asset": "usdc",
"chain": "arbitrum"
},
"estimated_fees": [
{
"amount": "0.20",
"type": "relayer"
},
{
"amount": "0.20",
"type": "privy"
},
{
"amount": "0.60",
"recipient": "0x1234567890abcdef1234567890abcdef12345678",
"type": "developer"
}
],
"estimated_gas": {
"amount": "0.0001",
"base_amount": "100000000000000",
"gas_asset": "ETH"
},
"estimated_output_amount": "10.45",
"expires_at": 1715200000,
"source": {
"amount": "10.50",
"asset": "usdc",
"chain": "base"
}
}
],
"type": "object",
"required": [
"destination",
"estimated_output_amount",
"expires_at",
"source"
],
"properties": {
"amount_type": {
"$ref": "#/components/schemas/AmountType"
},
"destination": {
"$ref": "#/components/schemas/TokenTransferDestination"
},
"estimated_fees": {
"description": "Estimated fees in USD for the transfer. Only
present for cross-chain transfers.",
"type": "array",
"items": {
"$ref": "#/components/schemas/FeeLineItem"
}
},
"estimated_gas": {
"allOf": [
{
"$ref": "#/components/schemas/Gas"
},
{
"description": "Estimated source gas cost with full token
metadata. Only present for cross-chain transfers."
}
]
},
"estimated_output_amount": {
"description": "Estimated output amount in decimals",
"type": "string"
},
"expires_at": {
"description": "Quote expiry as Unix timestamp (seconds).",
"type": "number"
},
"source": {
"$ref": "#/components/schemas/TokenTransferSource"
}
},
"x-stainless-model": "wallets.transfer_quote_response"
}Fields§
§amount_type: Option<AmountType>§destination: TokenTransferDestination§estimated_fees: Vec<FeeLineItem>Estimated fees in USD for the transfer. Only present for cross-chain transfers.
estimated_gas: Option<Gas>§estimated_output_amount: StringEstimated output amount in decimals
expires_at: f64§source: TokenTransferSourceTrait Implementations§
Source§impl Clone for TransferQuoteResponse
impl Clone for TransferQuoteResponse
Source§fn clone(&self) -> TransferQuoteResponse
fn clone(&self) -> TransferQuoteResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransferQuoteResponse
impl Debug for TransferQuoteResponse
Source§impl<'de> Deserialize<'de> for TransferQuoteResponse
impl<'de> Deserialize<'de> for TransferQuoteResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&TransferQuoteResponse> for TransferQuoteResponse
impl From<&TransferQuoteResponse> for TransferQuoteResponse
Source§fn from(value: &TransferQuoteResponse) -> Self
fn from(value: &TransferQuoteResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransferQuoteResponse
impl RefUnwindSafe for TransferQuoteResponse
impl Send for TransferQuoteResponse
impl Sync for TransferQuoteResponse
impl Unpin for TransferQuoteResponse
impl UnsafeUnpin for TransferQuoteResponse
impl UnwindSafe for TransferQuoteResponse
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
Mutably borrows from an owned value. Read more