Class: Privy::Models::GetByWalletAddressRequestBody

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

Direct Known Subclasses

WalletGetWalletByAddressParams

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:, include_archived: nil) ⇒ GetByWalletAddressRequestBody

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

Request body for looking up a wallet by its blockchain address.

Parameters:

  • address (String)

    A blockchain wallet address. Ethereum addresses are normalized to EIP-55 checksu

  • include_archived (Boolean) (defaults to: nil)

    Include archived wallets in lookup. Defaults to false (archived wallets return 4

  • address: (String)
  • include_archived: (Boolean) (defaults to: nil)


# File 'lib/privy/models/get_by_wallet_address_request_body.rb', line 21

Instance Attribute Details

#addressString

A blockchain wallet address. Ethereum addresses are normalized to EIP-55 checksum format. Solana addresses are validated as base58. All other chain addresses (Stellar, Tron, Sui, Aptos, etc.) are accepted as-is.

Parameters:

  • value (String)

Returns:

  • (String)


12
# File 'lib/privy/models/get_by_wallet_address_request_body.rb', line 12

required :address, String

#include_archivedBoolean?

Include archived wallets in lookup. Defaults to false (archived wallets return 404).

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


19
# File 'lib/privy/models/get_by_wallet_address_request_body.rb', line 19

optional :include_archived, Privy::Internal::Type::Boolean

Instance Method Details

#to_hash{ address: String, include_archived: bool }

Returns:

  • ({ address: String, include_archived: bool })


15
# File 'sig/privy/models/get_by_wallet_address_request_body.rbs', line 15

def to_hash: -> { address: String, include_archived: bool }