pub struct NamedTokenTransferSource {
pub amount: NamedTokenTransferSourceAmount,
pub asset: String,
pub chain: String,
}Expand description
Source for a transfer identified by a named asset (e.g. “usdc”, “eth”). Use this variant for first-class assets maintained by Privy.
JSON schema
{
"title": "NamedTokenTransferSource",
"description": "Source for a transfer identified by a named asset (e.g.
\"usdc\", \"eth\"). Use this variant for first-class assets maintained
by Privy.",
"examples": [
{
"amount": "10.5",
"asset": "usdc",
"chain": "base"
}
],
"type": "object",
"required": [
"amount",
"asset",
"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": {
"description": "The asset to transfer. Supported: 'usdc', 'usdb', 'usdt' (stablecoins), 'eth' (native Ethereum), 'sol' (native Solana).",
"type": "string"
},
"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.named_token_transfer_source"
}Fields§
§amount: NamedTokenTransferSourceAmountAmount 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: StringThe asset to transfer. Supported: ‘usdc’, ‘usdb’, ‘usdt’ (stablecoins), ‘eth’ (native Ethereum), ‘sol’ (native Solana).
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 NamedTokenTransferSource
impl Clone for NamedTokenTransferSource
Source§fn clone(&self) -> NamedTokenTransferSource
fn clone(&self) -> NamedTokenTransferSource
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 NamedTokenTransferSource
impl Debug for NamedTokenTransferSource
Source§impl<'de> Deserialize<'de> for NamedTokenTransferSource
impl<'de> Deserialize<'de> for NamedTokenTransferSource
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<&NamedTokenTransferSource> for NamedTokenTransferSource
impl From<&NamedTokenTransferSource> for NamedTokenTransferSource
Source§fn from(value: &NamedTokenTransferSource) -> Self
fn from(value: &NamedTokenTransferSource) -> Self
Converts to this type from the input type.
Source§impl From<NamedTokenTransferSource> for TokenTransferSource
impl From<NamedTokenTransferSource> for TokenTransferSource
Source§fn from(value: NamedTokenTransferSource) -> Self
fn from(value: NamedTokenTransferSource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NamedTokenTransferSource
impl RefUnwindSafe for NamedTokenTransferSource
impl Send for NamedTokenTransferSource
impl Sync for NamedTokenTransferSource
impl Unpin for NamedTokenTransferSource
impl UnsafeUnpin for NamedTokenTransferSource
impl UnwindSafe for NamedTokenTransferSource
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