Class: Privy::Models::TokenTransferDestination

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/token_transfer_destination.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • address (String)

    Recipient address (hex for EVM, base58 for Solana)

  • asset (String) (defaults to: nil)

    The destination asset. Required for cross-asset transfers (e.g., source ‘usdt’ t

  • chain (String) (defaults to: nil)

    The destination blockchain network. Required for cross-chain transfers (e.g., so



# File 'lib/privy/models/token_transfer_destination.rb', line 26

Instance Attribute Details

#addressString

Recipient address (hex for EVM, base58 for Solana)

Returns:

  • (String)


10
# File 'lib/privy/models/token_transfer_destination.rb', line 10

required :address, String

#assetString?

The destination asset. Required for cross-asset transfers (e.g., source ‘usdt’ to destination ‘usdc’).

Returns:

  • (String, nil)


17
# File 'lib/privy/models/token_transfer_destination.rb', line 17

optional :asset, String

#chainString?

The destination blockchain network. Required for cross-chain transfers (e.g., source ‘base’ to destination ‘arbitrum’).

Returns:

  • (String, nil)


24
# File 'lib/privy/models/token_transfer_destination.rb', line 24

optional :chain, String