Class: Privy::Models::WalletActionTransferSucceededWebhookPayload
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::WalletActionTransferSucceededWebhookPayload
- Defined in:
- lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb,
sig/privy/models/wallet_action_transfer_succeeded_webhook_payload.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#action_type ⇒ Symbol, Privy::Models::Wallets::WalletActionType
Type of wallet action.
-
#completed_at ⇒ String
ISO 8601 timestamp of when the wallet action completed successfully.
-
#created_at ⇒ String
ISO 8601 timestamp of when the wallet action was created.
-
#destination_address ⇒ String
Recipient address.
-
#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::WalletActionTransferSucceededWebhookPayload::Status
The status of the wallet action.
-
#steps ⇒ Array<Privy::Models::Wallets::EvmTransactionWalletActionStep, Privy::Models::Wallets::EvmUserOperationWalletActionStep, Privy::Models::Wallets::SvmTransactionWalletActionStep, Privy::Models::Wallets::TvmTransactionWalletActionStep, Privy::Models::Wallets::ExternalTransactionWalletActionStep, Privy::Models::Wallets::CustodianTransactionWalletActionStep>
The steps of the wallet action, including transaction hashes.
-
#type ⇒ Symbol, Privy::Models::WalletActionTransferSucceededWebhookPayload::Type
The type of webhook event.
-
#wallet_action_id ⇒ String
The ID of the wallet action.
-
#wallet_id ⇒ String
The ID of the wallet involved in the action.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action_type:, completed_at:, created_at:, destination_address:, source_chain:, status:, steps:, type:, wallet_action_id:, wallet_id:, source_amount: nil, source_asset: nil, source_asset_address: nil, source_asset_decimals: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see WalletActionTransferSucceededWebhookPayload for more details.
- #to_hash ⇒ {
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(action_type:, completed_at:, created_at:, destination_address:, source_chain:, status:, steps:, type:, wallet_action_id:, wallet_id:, source_amount: nil, source_asset: nil, source_asset_address: nil, source_asset_decimals: nil) ⇒ Object
Some parameter documentations has been truncated, see Privy::Models::WalletActionTransferSucceededWebhookPayload for more details.
Payload for the wallet_action.transfer.succeeded webhook event.
|
|
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 94
|
Instance Attribute Details
#action_type ⇒ Symbol, Privy::Models::Wallets::WalletActionType
Type of wallet action
10 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 10 required :action_type, enum: -> { Privy::Wallets::WalletActionType } |
#completed_at ⇒ String
ISO 8601 timestamp of when the wallet action completed successfully.
16 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 16 required :completed_at, String |
#created_at ⇒ String
ISO 8601 timestamp of when the wallet action was created.
22 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 22 required :created_at, String |
#destination_address ⇒ String
Recipient address.
28 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 28 required :destination_address, 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.
71 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 71 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.
78 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 78 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.
85 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 85 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 onchain.
92 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 92 optional :source_asset_decimals, Integer |
#source_chain ⇒ String
Chain name (e.g. "base", "ethereum").
34 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 34 required :source_chain, String |
#status ⇒ Symbol, Privy::Models::WalletActionTransferSucceededWebhookPayload::Status
The status of the wallet action.
40 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 40 required :status, enum: -> { Privy::WalletActionTransferSucceededWebhookPayload::Status } |
#steps ⇒ Array<Privy::Models::Wallets::EvmTransactionWalletActionStep, Privy::Models::Wallets::EvmUserOperationWalletActionStep, Privy::Models::Wallets::SvmTransactionWalletActionStep, Privy::Models::Wallets::TvmTransactionWalletActionStep, Privy::Models::Wallets::ExternalTransactionWalletActionStep, Privy::Models::Wallets::CustodianTransactionWalletActionStep>
The steps of the wallet action, including transaction hashes.
46 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 46 required :steps, -> { Privy::Internal::Type::ArrayOf[union: Privy::Wallets::WalletActionStep] } |
#type ⇒ Symbol, Privy::Models::WalletActionTransferSucceededWebhookPayload::Type
The type of webhook event.
52 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 52 required :type, enum: -> { Privy::WalletActionTransferSucceededWebhookPayload::Type } |
#wallet_action_id ⇒ String
The ID of the wallet action.
58 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 58 required :wallet_action_id, String |
#wallet_id ⇒ String
The ID of the wallet involved in the action.
64 |
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 64 required :wallet_id, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/privy/models/wallet_action_transfer_succeeded_webhook_payload.rb', line 136
|
Instance Method Details
#to_hash ⇒ {
75 |
# File 'sig/privy/models/wallet_action_transfer_succeeded_webhook_payload.rbs', line 75
def to_hash: -> {
|