Class: WhopSDK::Models::Account::Wallet

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/account.rb,
sig/whop_sdk/models/account.rbs

Overview

See Also:

  • WhopSDK::Models::Account#wallet

Defined Under Namespace

Modules: Network

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:, network:) ⇒ Object

Account primary crypto wallet, or null if none has been provisioned.

Parameters:

  • id (String)

    Wallet ID, prefixed wallet_.

  • address (String)

    The on-chain address of the wallet

  • network (Symbol, WhopSDK::Models::Account::Wallet::Network)

    The blockchain network the wallet lives on



# File 'lib/whop_sdk/models/account.rb', line 942

Instance Attribute Details

#addressString

The on-chain address of the wallet

Parameters:

  • value (String)

Returns:

  • (String)


934
# File 'lib/whop_sdk/models/account.rb', line 934

required :address, String

#idString

Wallet ID, prefixed wallet_.

Parameters:

  • value (String)

Returns:

  • (String)


928
# File 'lib/whop_sdk/models/account.rb', line 928

required :id, String

#networkSymbol, WhopSDK::Models::Account::Wallet::Network

The blockchain network the wallet lives on

Parameters:

  • value (WhopSDK::Models::Account::Wallet::network)

Returns:



940
# File 'lib/whop_sdk/models/account.rb', line 940

required :network, enum: -> { WhopSDK::Account::Wallet::Network }

Instance Method Details

#to_hash{

Returns:

  • ({)


686
# File 'sig/whop_sdk/models/account.rbs', line 686

def to_hash: -> {