pub struct TransferRequestBody {
pub amount_type: Option<AmountType>,
pub destination: TokenTransferDestination,
pub fee_configuration: Option<TotalFeeConfigurationBps>,
pub slippage_bps: Option<i64>,
pub source: TokenTransferSource,
}Expand description
Request body for initiating a sponsored token transfer from an embedded wallet.
JSON schema
{
"title": "TransferRequestBody",
"description": "Request body for initiating a sponsored token transfer
from an embedded wallet.",
"examples": [
{
"destination": {
"address": "0xB00F0759DbeeF5E543Cc3E3B07A6442F5f3928a2"
},
"source": {
"amount": "10.5",
"asset": "usdc",
"chain": "base"
}
}
],
"type": "object",
"required": [
"destination",
"source"
],
"properties": {
"amount_type": {
"$ref": "#/components/schemas/AmountType"
},
"destination": {
"$ref": "#/components/schemas/TokenTransferDestination"
},
"fee_configuration": {
"allOf": [
{
"$ref": "#/components/schemas/FeeConfiguration"
},
{
"description": "Optional fee configuration for the transfer. If
omitted, cross-chain transfers will not charge additional fees."
}
]
},
"slippage_bps": {
"description": "Maximum allowed slippage in basis points (1 bps =
0.01%). Only applicable for cross-chain or cross-asset transfers; omit
to use the provider default.",
"type": "integer",
"maximum": 10000.0,
"minimum": 0.0
},
"source": {
"$ref": "#/components/schemas/TokenTransferSource"
}
},
"x-stainless-model": "wallets.transfer_request_body"
}Fields§
§amount_type: Option<AmountType>§destination: TokenTransferDestination§fee_configuration: Option<TotalFeeConfigurationBps>§slippage_bps: Option<i64>Maximum allowed slippage in basis points (1 bps = 0.01%). Only applicable for cross-chain or cross-asset transfers; omit to use the provider default.
source: TokenTransferSourceTrait Implementations§
Source§impl Clone for TransferRequestBody
impl Clone for TransferRequestBody
Source§fn clone(&self) -> TransferRequestBody
fn clone(&self) -> TransferRequestBody
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 TransferRequestBody
impl Debug for TransferRequestBody
Source§impl<'de> Deserialize<'de> for TransferRequestBody
impl<'de> Deserialize<'de> for TransferRequestBody
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransferRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransferRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&TransferRequestBody> for TransferRequestBody
impl From<&TransferRequestBody> for TransferRequestBody
Source§fn from(value: &TransferRequestBody) -> TransferRequestBody
fn from(value: &TransferRequestBody) -> TransferRequestBody
Converts to this type from the input type.
Source§impl Serialize for TransferRequestBody
impl Serialize for TransferRequestBody
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TransferRequestBody
impl RefUnwindSafe for TransferRequestBody
impl Send for TransferRequestBody
impl Sync for TransferRequestBody
impl Unpin for TransferRequestBody
impl UnsafeUnpin for TransferRequestBody
impl UnwindSafe for TransferRequestBody
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