pub struct CustomTokenTransferSource {
pub amount: CustomTokenTransferSourceAmount,
pub asset_address: CustomTokenTransferSourceAssetAddress,
pub chain: String,
}Expand description
Source for a transfer identified by a token contract address (EVM) or mint address (Solana). Use this variant for tokens that are not first-class assets.
JSON schema
{
"title": "CustomTokenTransferSource",
"description": "Source for a transfer identified by a token contract
address (EVM) or mint address (Solana). Use this variant for tokens that
are not first-class assets.",
"examples": [
{
"amount": "10.5",
"asset_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"chain": "base"
}
],
"type": "object",
"required": [
"amount",
"asset_address",
"chain"
],
"properties": {
"amount": {
"description": "Amount as a decimal string in the token's standard unit (e.g. \"1.5\" for 1.5 USDC, \"0.01\" for 0.01 ETH). Not in the smallest on-chain unit (wei, lamports, etc.). Maximum 100 characters.",
"type": "string",
"maxLength": 100
},
"asset_address": {
"description": "The token contract address (EVM) or mint address
(Solana) of the asset to transfer.",
"oneOf": [
{
"type": "string"
},
{
"type": "string"
},
{
"$ref": "#/components/schemas/TronAddress"
}
]
},
"chain": {
"description": "The blockchain network on which to perform the
transfer. Supported chains include: 'ethereum', 'base', 'arbitrum',
'polygon', 'solana', and their respective testnets.",
"type": "string"
}
},
"x-stainless-model": "wallets.custom_token_transfer_source"
}Fields§
§amount: CustomTokenTransferSourceAmountAmount as a decimal string in the token’s standard unit (e.g. “1.5” for 1.5 USDC, “0.01” for 0.01 ETH). Not in the smallest on-chain unit (wei, lamports, etc.). Maximum 100 characters.
asset_address: CustomTokenTransferSourceAssetAddressThe token contract address (EVM) or mint address (Solana) of the asset to transfer.
chain: StringThe blockchain network on which to perform the transfer. Supported chains include: ‘ethereum’, ‘base’, ‘arbitrum’, ‘polygon’, ‘solana’, and their respective testnets.
Trait Implementations§
Source§impl Clone for CustomTokenTransferSource
impl Clone for CustomTokenTransferSource
Source§fn clone(&self) -> CustomTokenTransferSource
fn clone(&self) -> CustomTokenTransferSource
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 CustomTokenTransferSource
impl Debug for CustomTokenTransferSource
Source§impl<'de> Deserialize<'de> for CustomTokenTransferSource
impl<'de> Deserialize<'de> for CustomTokenTransferSource
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<&CustomTokenTransferSource> for CustomTokenTransferSource
impl From<&CustomTokenTransferSource> for CustomTokenTransferSource
Source§fn from(value: &CustomTokenTransferSource) -> Self
fn from(value: &CustomTokenTransferSource) -> Self
Converts to this type from the input type.
Source§impl From<CustomTokenTransferSource> for TokenTransferSource
impl From<CustomTokenTransferSource> for TokenTransferSource
Source§fn from(value: CustomTokenTransferSource) -> Self
fn from(value: CustomTokenTransferSource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CustomTokenTransferSource
impl RefUnwindSafe for CustomTokenTransferSource
impl Send for CustomTokenTransferSource
impl Sync for CustomTokenTransferSource
impl Unpin for CustomTokenTransferSource
impl UnsafeUnpin for CustomTokenTransferSource
impl UnwindSafe for CustomTokenTransferSource
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