Class: WhopSDK::Models::Account::Wallet
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::Account::Wallet
- Defined in:
- lib/whop_sdk/models/account.rb,
sig/whop_sdk/models/account.rbs
Overview
Defined Under Namespace
Modules: Network
Instance Attribute Summary collapse
-
#address ⇒ String
The on-chain address of the wallet.
-
#id ⇒ String
Wallet ID, prefixed
wallet_. -
#network ⇒ Symbol, WhopSDK::Models::Account::Wallet::Network
The blockchain network the wallet lives on.
Instance Method Summary collapse
-
#initialize(id:, address:, network:) ⇒ Object
constructor
Account primary crypto wallet, or
nullif none has been provisioned. - #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(id:, address:, network:) ⇒ Object
Account primary crypto wallet, or null if none has been provisioned.
|
|
# File 'lib/whop_sdk/models/account.rb', line 942
|
Instance Attribute Details
#address ⇒ String
The on-chain address of the wallet
934 |
# File 'lib/whop_sdk/models/account.rb', line 934 required :address, String |
#id ⇒ String
Wallet ID, prefixed wallet_.
928 |
# File 'lib/whop_sdk/models/account.rb', line 928 required :id, String |
#network ⇒ Symbol, WhopSDK::Models::Account::Wallet::Network
The blockchain network the wallet lives on
940 |
# File 'lib/whop_sdk/models/account.rb', line 940 required :network, enum: -> { WhopSDK::Account::Wallet::Network } |
Instance Method Details
#to_hash ⇒ {
686 |
# File 'sig/whop_sdk/models/account.rbs', line 686
def to_hash: -> {
|