Class: Privy::Models::CustodialWallet

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/custodial_wallet.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(id:, address:, chain_type:, custody:, owner_id:, additional_signers: nil, policy_ids: nil) ⇒ Object

Information about a custodial wallet.

Parameters:



# File 'lib/privy/models/custodial_wallet.rb', line 44

Instance Attribute Details

#additional_signersArray<Privy::Models::WalletAdditionalSignerItem>?

Additional signers for the wallet.



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

optional :additional_signers, -> { Privy::Internal::Type::ArrayOf[Privy::WalletAdditionalSignerItem] }

#addressString

Returns:

  • (String)


14
# File 'lib/privy/models/custodial_wallet.rb', line 14

required :address, String

#chain_typeSymbol, Privy::Models::CustodialWalletChainType

The chain type of the custodial wallet.



20
# File 'lib/privy/models/custodial_wallet.rb', line 20

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

#custodyPrivy::Models::WalletCustodian

Information about the custodian managing this wallet.



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

required :custody, -> { Privy::WalletCustodian }

#idString

Returns:

  • (String)


9
# File 'lib/privy/models/custodial_wallet.rb', line 9

required :id, String

#owner_idString?

Returns:

  • (String, nil)


31
# File 'lib/privy/models/custodial_wallet.rb', line 31

required :owner_id, String, nil?: true

#policy_idsArray<String>?

Returns:

  • (Array<String>, nil)


42
# File 'lib/privy/models/custodial_wallet.rb', line 42

optional :policy_ids, Privy::Internal::Type::ArrayOf[String]