Module: Privy::Models::Wallets::BalanceGetParams::Chain

Extended by:
Internal::Type::Union
Defined in:
lib/privy/models/wallets/balance_get_params.rb

Overview

Chain(s) to query named assets on (e.g. ‘base`, `ethereum`). Use together with `asset`. Cannot be used with `token`.

Defined Under Namespace

Modules: UnionMember1

collapse

ETHEREUM =
:ethereum
ARBITRUM =
:arbitrum
BASE =
:base
TEMPO =
:tempo
LINEA =
:linea
OPTIMISM =
:optimism
POLYGON =
:polygon
SOLANA =
:solana
ZKSYNC_ERA =
:zksync_era
SEPOLIA =
:sepolia
ARBITRUM_SEPOLIA =
:arbitrum_sepolia
BASE_SEPOLIA =
:base_sepolia
LINEA_TESTNET =
:linea_testnet
OPTIMISM_SEPOLIA =
:optimism_sepolia
POLYGON_AMOY =
:polygon_amoy
SOLANA_DEVNET =
:solana_devnet
SOLANA_TESTNET =
:solana_testnet

Constant Summary collapse

UnionMember1Array =
Privy::Internal::Type::ArrayOf[enum: -> { Privy::Wallets::BalanceGetParams::Chain::UnionMember1 }]

Class Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/privy/models/wallets/balance_get_params.rb', line 190

.variantsArray(Symbol, Array<Symbol, Privy::Models::Wallets::BalanceGetParams::Chain::UnionMember1>)

Returns:



197
198
199
200
201
202
203
204
# File 'lib/privy/models/wallets/balance_get_params.rb', line 197

define_sorbet_constant!(:Variants) do
  T.type_alias do
    T.any(
      Privy::Wallets::BalanceGetParams::Chain::TaggedSymbol,
      T::Array[Privy::Wallets::BalanceGetParams::Chain::UnionMember1::TaggedSymbol]
    )
  end
end