Class: Privy::Models::TokenTransferDestination
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::TokenTransferDestination
- Defined in:
- lib/privy/models/token_transfer_destination.rb
Instance Attribute Summary collapse
-
#address ⇒ String
Recipient address (hex for EVM, base58 for Solana).
-
#asset ⇒ String?
The destination asset.
-
#chain ⇒ String?
The destination blockchain network.
Instance Method Summary collapse
-
#initialize(address:, asset: nil, chain: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see TokenTransferDestination 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(address:, asset: nil, chain: nil) ⇒ Object
Some parameter documentations has been truncated, see Privy::Models::TokenTransferDestination for more details.
The destination address for a token transfer. Optionally specify a different asset or chain for cross-asset or cross-chain transfers.
|
|
# File 'lib/privy/models/token_transfer_destination.rb', line 26
|
Instance Attribute Details
#address ⇒ String
Recipient address (hex for EVM, base58 for Solana)
10 |
# File 'lib/privy/models/token_transfer_destination.rb', line 10 required :address, String |
#asset ⇒ String?
The destination asset. Required for cross-asset transfers (e.g., source ‘usdt’ to destination ‘usdc’).
17 |
# File 'lib/privy/models/token_transfer_destination.rb', line 17 optional :asset, String |
#chain ⇒ String?
The destination blockchain network. Required for cross-chain transfers (e.g., source ‘base’ to destination ‘arbitrum’).
24 |
# File 'lib/privy/models/token_transfer_destination.rb', line 24 optional :chain, String |