pub struct TransferActionResponse {Show 20 fields
pub created_at: DateTime<Utc>,
pub destination_address: String,
pub destination_amount: Option<String>,
pub destination_asset: Option<String>,
pub destination_chain: Option<String>,
pub estimated_fees: Vec<FeeLineItem>,
pub estimated_gas: Option<Gas>,
pub failure_reason: Option<FailureReason>,
pub fees: Vec<FeeLineItem>,
pub gas: Option<Gas>,
pub id: String,
pub source_amount: Option<String>,
pub source_asset: Option<String>,
pub source_asset_address: Option<String>,
pub source_asset_decimals: Option<i64>,
pub source_chain: String,
pub status: WalletActionStatus,
pub steps: Vec<WalletActionStep>,
pub type_: TransferActionResponseType,
pub wallet_id: String,
}Expand description
Response for a transfer action.
JSON schema
{
"title": "TransferActionResponse",
"description": "Response for a transfer action.",
"type": "object",
"required": [
"created_at",
"destination_address",
"id",
"source_chain",
"status",
"type",
"wallet_id"
],
"properties": {
"created_at": {
"description": "ISO 8601 timestamp of when the wallet action was
created.",
"type": "string",
"format": "date-time"
},
"destination_address": {
"description": "Recipient address.",
"type": "string"
},
"destination_amount": {
"description": "Amount received on the destination chain. Set at
creation for same-chain transfers. Null until fill confirmation for
cross-chain or cross-asset transfers.",
"type": "string"
},
"destination_asset": {
"description": "Destination asset for cross-asset transfers.
Omitted for same-asset transfers.",
"type": "string"
},
"destination_chain": {
"description": "Destination chain for cross-chain transfers.
Omitted for same-chain transfers.",
"type": "string"
},
"estimated_fees": {
"description": "Estimated fee breakdown from the provider quote.
Only present for cross-chain or cross-asset transfers. Populated after
on-chain confirmation.",
"type": "array",
"items": {
"$ref": "#/components/schemas/FeeLineItem"
}
},
"estimated_gas": {
"allOf": [
{
"$ref": "#/components/schemas/Gas"
},
{
"description": "Estimated source-chain gas cost from the
provider quote. Only present for cross-chain or cross-asset transfers.
Populated after on-chain confirmation.",
"type": "object"
}
]
},
"failure_reason": {
"allOf": [
{
"$ref": "#/components/schemas/FailureReason"
},
{
"description": "Top-level failure context for the wallet
action. Present on rejected or failed actions when available."
}
]
},
"fees": {
"description": "Actual fees paid for the transfer. Populated after
on-chain confirmation. Only present for cross-chain transfers.",
"type": "array",
"items": {
"$ref": "#/components/schemas/FeeLineItem"
}
},
"gas": {
"allOf": [
{
"$ref": "#/components/schemas/Gas"
},
{
"description": "Actual source-chain gas cost. Populated after
on-chain confirmation. Only present for cross-chain transfers.",
"type": "object"
}
]
},
"id": {
"description": "The ID of the wallet action.",
"type": "string"
},
"source_amount": {
"description": "Decimal amount sent on the source chain (e.g.
\"1.5\"). Omitted for exact_output cross-chain transfers until the
source amount is determined.",
"type": "string"
},
"source_asset": {
"description": "Asset identifier (e.g. \"usdc\", \"eth\"). Present
when the transfer was initiated with a named asset; omitted for
custom-token transfers.",
"type": "string"
},
"source_asset_address": {
"description": "Token contract address (EVM) or mint address
(Solana). Present when the transfer was initiated with
`asset_address`.",
"type": "string"
},
"source_asset_decimals": {
"description": "Number of decimals for the transferred token.
Present when the transfer was initiated with `asset_address` and the
decimals were resolved on-chain.",
"type": "integer"
},
"source_chain": {
"description": "Chain name (e.g. \"base\", \"ethereum\").",
"type": "string"
},
"status": {
"allOf": [
{
"$ref": "#/components/schemas/WalletActionStatus"
},
{
"description": "The current status of the wallet action."
}
]
},
"steps": {
"description": "The steps of the wallet action. Only returned if
`?include=steps` is provided.",
"type": "array",
"items": {
"$ref": "#/components/schemas/WalletActionStep"
}
},
"type": {
"type": "string",
"enum": [
"transfer"
]
},
"wallet_id": {
"description": "The ID of the wallet involved in the action.",
"type": "string"
}
},
"x-stainless-model": "wallet_actions.transfer_action_response"
}Fields§
§created_at: DateTime<Utc>ISO 8601 timestamp of when the wallet action was created.
destination_address: StringRecipient address.
destination_amount: Option<String>Amount received on the destination chain. Set at creation for same-chain transfers. Null until fill confirmation for cross-chain or cross-asset transfers.
destination_asset: Option<String>Destination asset for cross-asset transfers. Omitted for same-asset transfers.
destination_chain: Option<String>Destination chain for cross-chain transfers. Omitted for same-chain transfers.
estimated_fees: Vec<FeeLineItem>Estimated fee breakdown from the provider quote. Only present for cross-chain or cross-asset transfers. Populated after on-chain confirmation.
estimated_gas: Option<Gas>§failure_reason: Option<FailureReason>§fees: Vec<FeeLineItem>Actual fees paid for the transfer. Populated after on-chain confirmation. Only present for cross-chain transfers.
gas: Option<Gas>§id: StringThe ID of the wallet action.
source_amount: Option<String>Decimal amount sent on the source chain (e.g. “1.5”). Omitted for exact_output cross-chain transfers until the source amount is determined.
source_asset: Option<String>Asset identifier (e.g. “usdc”, “eth”). Present when the transfer was initiated with a named asset; omitted for custom-token transfers.
source_asset_address: Option<String>Token contract address (EVM) or mint address (Solana). Present when
the transfer was initiated with asset_address.
source_asset_decimals: Option<i64>Number of decimals for the transferred token. Present when the
transfer was initiated with asset_address and the decimals were
resolved on-chain.
source_chain: StringChain name (e.g. “base”, “ethereum”).
status: WalletActionStatus§steps: Vec<WalletActionStep>The steps of the wallet action. Only returned if ?include=steps is
provided.
type_: TransferActionResponseType§wallet_id: StringThe ID of the wallet involved in the action.
Trait Implementations§
Source§impl Clone for TransferActionResponse
impl Clone for TransferActionResponse
Source§fn clone(&self) -> TransferActionResponse
fn clone(&self) -> TransferActionResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more