Class: Privy::Models::TransferActionResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::TransferActionResponse
- Defined in:
- lib/privy/models/transfer_action_response.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#created_at ⇒ Time
ISO 8601 timestamp of when the wallet action was created.
-
#destination_address ⇒ String
Recipient address.
-
#destination_amount ⇒ String?
Amount received on the destination chain.
-
#destination_asset ⇒ String?
Destination asset for cross-asset transfers.
-
#destination_chain ⇒ String?
Destination chain for cross-chain transfers.
-
#failure_reason ⇒ Privy::Models::FailureReason?
A description of why a wallet action (or a step within a wallet action) failed.
-
#fees ⇒ Array<Privy::Models::RelayerFee, Privy::Models::PrivyFee, Privy::Models::DeveloperFee>?
Fees paid for the transfer.
-
#id ⇒ String
The ID of the wallet action.
-
#source_amount ⇒ String?
Decimal amount sent on the source chain (e.g. “1.5”).
-
#source_asset ⇒ String?
Asset identifier (e.g. “usdc”, “eth”).
-
#source_asset_address ⇒ String?
Token contract address (EVM) or mint address (Solana).
-
#source_asset_decimals ⇒ Integer?
Number of decimals for the transferred token.
-
#source_chain ⇒ String
Chain name (e.g. “base”, “ethereum”).
-
#status ⇒ Symbol, Privy::Models::WalletActionStatus
Status of a wallet action.
-
#steps ⇒ Array<Privy::Models::EvmTransactionWalletActionStep, Privy::Models::EvmUserOperationWalletActionStep, Privy::Models::SvmTransactionWalletActionStep, Privy::Models::ExternalTransactionWalletActionStep>?
The steps of the wallet action.
- #type ⇒ Symbol, Privy::Models::TransferActionResponse::Type
-
#wallet_id ⇒ String
The ID of the wallet involved in the action.
Instance Method Summary collapse
-
#initialize(id:, created_at:, destination_address:, source_chain:, status:, type:, wallet_id:, destination_amount: nil, destination_asset: nil, destination_chain: nil, failure_reason: nil, fees: nil, source_amount: nil, source_asset: nil, source_asset_address: nil, source_asset_decimals: nil, steps: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see TransferActionResponse for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, created_at:, destination_address:, source_chain:, status:, type:, wallet_id:, destination_amount: nil, destination_asset: nil, destination_chain: nil, failure_reason: nil, fees: nil, source_amount: nil, source_asset: nil, source_asset_address: nil, source_asset_decimals: nil, steps: nil) ⇒ Object
Some parameter documentations has been truncated, see Privy::Models::TransferActionResponse for more details.
Response for a transfer action.
|
|
# File 'lib/privy/models/transfer_action_response.rb', line 112
|
Instance Attribute Details
#created_at ⇒ Time
ISO 8601 timestamp of when the wallet action was created.
16 |
# File 'lib/privy/models/transfer_action_response.rb', line 16 required :created_at, Time |
#destination_address ⇒ String
Recipient address.
22 |
# File 'lib/privy/models/transfer_action_response.rb', line 22 required :destination_address, String |
#destination_amount ⇒ String?
Amount received on the destination chain. Populated immediately for exact_output transfers, or after fill confirmation for exact_input transfers.
52 |
# File 'lib/privy/models/transfer_action_response.rb', line 52 optional :destination_amount, String |
#destination_asset ⇒ String?
Destination asset for cross-asset transfers. Omitted for same-asset transfers.
58 |
# File 'lib/privy/models/transfer_action_response.rb', line 58 optional :destination_asset, String |
#destination_chain ⇒ String?
Destination chain for cross-chain transfers. Omitted for same-chain transfers.
64 |
# File 'lib/privy/models/transfer_action_response.rb', line 64 optional :destination_chain, String |
#failure_reason ⇒ Privy::Models::FailureReason?
A description of why a wallet action (or a step within a wallet action) failed.
70 |
# File 'lib/privy/models/transfer_action_response.rb', line 70 optional :failure_reason, -> { Privy::FailureReason } |
#fees ⇒ Array<Privy::Models::RelayerFee, Privy::Models::PrivyFee, Privy::Models::DeveloperFee>?
Fees paid for the transfer.
76 |
# File 'lib/privy/models/transfer_action_response.rb', line 76 optional :fees, -> { Privy::Internal::Type::ArrayOf[union: Privy::FeeLineItem] } |
#id ⇒ String
The ID of the wallet action.
10 |
# File 'lib/privy/models/transfer_action_response.rb', line 10 required :id, String |
#source_amount ⇒ 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.
83 |
# File 'lib/privy/models/transfer_action_response.rb', line 83 optional :source_amount, String |
#source_asset ⇒ String?
Asset identifier (e.g. “usdc”, “eth”). Present when the transfer was initiated with a named asset; omitted for custom-token transfers.
90 |
# File 'lib/privy/models/transfer_action_response.rb', line 90 optional :source_asset, String |
#source_asset_address ⇒ String?
Token contract address (EVM) or mint address (Solana). Present when the transfer was initiated with ‘asset_address`.
97 |
# File 'lib/privy/models/transfer_action_response.rb', line 97 optional :source_asset_address, String |
#source_asset_decimals ⇒ Integer?
Number of decimals for the transferred token. Present when the transfer was initiated with ‘asset_address` and the decimals were resolved on-chain.
104 |
# File 'lib/privy/models/transfer_action_response.rb', line 104 optional :source_asset_decimals, Integer |
#source_chain ⇒ String
Chain name (e.g. “base”, “ethereum”).
28 |
# File 'lib/privy/models/transfer_action_response.rb', line 28 required :source_chain, String |
#status ⇒ Symbol, Privy::Models::WalletActionStatus
Status of a wallet action.
34 |
# File 'lib/privy/models/transfer_action_response.rb', line 34 required :status, enum: -> { Privy::WalletActionStatus } |
#steps ⇒ Array<Privy::Models::EvmTransactionWalletActionStep, Privy::Models::EvmUserOperationWalletActionStep, Privy::Models::SvmTransactionWalletActionStep, Privy::Models::ExternalTransactionWalletActionStep>?
The steps of the wallet action. Only returned if ‘?include=steps` is provided.
110 |
# File 'lib/privy/models/transfer_action_response.rb', line 110 optional :steps, -> { Privy::Internal::Type::ArrayOf[union: Privy::WalletActionStep] } |
#type ⇒ Symbol, Privy::Models::TransferActionResponse::Type
39 |
# File 'lib/privy/models/transfer_action_response.rb', line 39 required :type, enum: -> { Privy::TransferActionResponse::Type } |
#wallet_id ⇒ String
The ID of the wallet involved in the action.
45 |
# File 'lib/privy/models/transfer_action_response.rb', line 45 required :wallet_id, String |