pub struct EarnDepositActionResponse {Show 16 fields
pub amount: Option<String>,
pub asset: Option<String>,
pub asset_address: String,
pub caip2: String,
pub created_at: DateTime<Utc>,
pub decimals: Option<i64>,
pub failure_reason: Option<FailureReason>,
pub id: String,
pub raw_amount: String,
pub share_amount: Option<String>,
pub status: WalletActionStatus,
pub steps: Vec<WalletActionStep>,
pub type_: EarnDepositActionResponseType,
pub vault_address: String,
pub vault_id: String,
pub wallet_id: String,
}Expand description
Response for an earn deposit action.
JSON schema
{
"title": "EarnDepositActionResponse",
"description": "Response for an earn deposit action.",
"type": "object",
"required": [
"asset_address",
"caip2",
"created_at",
"id",
"raw_amount",
"status",
"type",
"vault_address",
"vault_id",
"wallet_id"
],
"properties": {
"amount": {
"description": "Human-readable decimal amount of asset deposited
(e.g. \"1.5\"). Only present when the token is known in the asset
registry.",
"type": "string"
},
"asset": {
"description": "Asset identifier (e.g. \"usdc\", \"eth\"). Only
present when the token is known in the asset registry.",
"type": "string"
},
"asset_address": {
"description": "Underlying asset token address.",
"type": "string"
},
"caip2": {
"description": "CAIP-2 chain identifier.",
"type": "string"
},
"created_at": {
"description": "ISO 8601 timestamp of when the wallet action was
created.",
"type": "string",
"format": "date-time"
},
"decimals": {
"description": "Number of decimals for the underlying asset (e.g. 6
for USDC, 18 for ETH). Only present when the token is known in the asset
registry.",
"type": "integer"
},
"failure_reason": {
"allOf": [
{
"$ref": "#/components/schemas/FailureReason"
},
{
"description": "Top-level failure context for the wallet
action. Present on rejected or failed actions when available."
}
]
},
"id": {
"description": "The ID of the wallet action.",
"type": "string"
},
"raw_amount": {
"description": "Base-unit amount of asset deposited (e.g.
\"1500000\").",
"type": "string"
},
"share_amount": {
"description": "Vault shares received in base units. Populated
after on-chain confirmation.",
"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": [
"earn_deposit"
]
},
"vault_address": {
"description": "ERC-4626 vault contract address.",
"type": "string"
},
"vault_id": {
"description": "The vault ID.",
"type": "string"
},
"wallet_id": {
"description": "The ID of the wallet involved in the action.",
"type": "string"
}
},
"x-stainless-model": "wallet_actions.earn_deposit_action_response"
}Fields§
§amount: Option<String>Human-readable decimal amount of asset deposited (e.g. “1.5”). Only present when the token is known in the asset registry.
asset: Option<String>Asset identifier (e.g. “usdc”, “eth”). Only present when the token is known in the asset registry.
asset_address: StringUnderlying asset token address.
caip2: StringCAIP-2 chain identifier.
created_at: DateTime<Utc>ISO 8601 timestamp of when the wallet action was created.
decimals: Option<i64>Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only present when the token is known in the asset registry.
failure_reason: Option<FailureReason>§id: StringThe ID of the wallet action.
raw_amount: StringBase-unit amount of asset deposited (e.g. “1500000”).
Vault shares received in base units. Populated after on-chain confirmation.
status: WalletActionStatus§steps: Vec<WalletActionStep>The steps of the wallet action. Only returned if ?include=steps is
provided.
type_: EarnDepositActionResponseType§vault_address: StringERC-4626 vault contract address.
vault_id: StringThe vault ID.
wallet_id: StringThe ID of the wallet involved in the action.
Trait Implementations§
Source§impl Clone for EarnDepositActionResponse
impl Clone for EarnDepositActionResponse
Source§fn clone(&self) -> EarnDepositActionResponse
fn clone(&self) -> EarnDepositActionResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more