Class: Privy::Models::HDInitInput

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

Defined Under Namespace

Modules: EntropyType

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:, chain_type:, encryption_type:, entropy_type:, index:) ⇒ Object

Some parameter documentations has been truncated, see Privy::Models::HDInitInput for more details.

The input for HD wallets.

Parameters:



# File 'lib/privy/models/hd_init_input.rb', line 37

Instance Attribute Details

#addressString

The address of the wallet to import.

Returns:

  • (String)


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

required :address, String

#chain_typeSymbol, Privy::Models::WalletImportSupportedChains

The chain type of the wallet to import. Currently supports ‘ethereum` and `solana`.



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

required :chain_type, enum: -> { Privy::WalletImportSupportedChains }

#encryption_typeSymbol, Privy::Models::HpkeEncryption

The encryption type of the wallet to import. Currently only supports ‘HPKE`.

Returns:



23
# File 'lib/privy/models/hd_init_input.rb', line 23

required :encryption_type, enum: -> { Privy::HpkeEncryption }

#entropy_typeSymbol, Privy::Models::HDInitInput::EntropyType

The entropy type of the wallet to import.



29
# File 'lib/privy/models/hd_init_input.rb', line 29

required :entropy_type, enum: -> { Privy::HDInitInput::EntropyType }

#indexInteger

The index of the wallet to import.

Returns:

  • (Integer)


35
# File 'lib/privy/models/hd_init_input.rb', line 35

required :index, Integer