Class: Privy::Models::Wallets::TransactionGetParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/privy/models/wallets/transaction_get_params.rb,
sig/privy/models/wallets/transaction_get_params.rbs

Overview

See Also:

  • Privy::Resources::Wallets::Transactions#get

Defined Under Namespace

Modules: Asset, Token

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(wallet_id:, chain:, token: nil, asset: nil, cursor: nil, include_archived: nil, limit: nil, tx_hash: nil, request_options: {}) ⇒ Object

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

Parameters:

  • wallet_id (String)

    ID of the wallet.

  • chain (Symbol, Privy::Models::TransactionChainNameInput)

    Chains supported for transaction history queries.

  • token (String, Array<String>) (defaults to: nil)

    Exactly one of token or asset is required. Cannot be used together with `ass

  • asset (Symbol, Array<Symbol, Privy::Models::WalletAsset>, Privy::Models::Wallets::TransactionGetParams::Asset) (defaults to: nil)

    Exactly one of asset or token is required. Cannot be used together with `tok

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

    Include archived wallets in lookup. Defaults to false.

  • limit (Float, nil) (defaults to: nil)
  • tx_hash (String) (defaults to: nil)
  • request_options (Privy::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/privy/models/wallets/transaction_get_params.rb', line 58

Instance Attribute Details

#assetSymbol, ...

Exactly one of asset or token is required. Cannot be used together with token.



35
# File 'lib/privy/models/wallets/transaction_get_params.rb', line 35

optional :asset, union: -> { Privy::Wallets::TransactionGetParams::Asset }

#chainSymbol, Privy::Models::TransactionChainNameInput

Chains supported for transaction history queries.

Parameters:

  • value (Privy::Models::transaction_chain_name_input)

Returns:



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

required :chain, enum: -> { Privy::TransactionChainNameInput }

#cursorString?

Parameters:

  • (String)

Returns:

  • (String, nil)


40
# File 'lib/privy/models/wallets/transaction_get_params.rb', line 40

optional :cursor, String

#include_archivedBoolean?

Include archived wallets in lookup. Defaults to false.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


46
# File 'lib/privy/models/wallets/transaction_get_params.rb', line 46

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

#limitFloat?

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


51
# File 'lib/privy/models/wallets/transaction_get_params.rb', line 51

optional :limit, Float, nil?: true

#tokenString, ...

Exactly one of token or asset is required. Cannot be used together with asset.

Returns:

  • (String, Array<String>, nil)


28
# File 'lib/privy/models/wallets/transaction_get_params.rb', line 28

optional :token, union: -> { Privy::Wallets::TransactionGetParams::Token }

#tx_hashString?

Parameters:

  • (String)

Returns:

  • (String, nil)


56
# File 'lib/privy/models/wallets/transaction_get_params.rb', line 56

optional :tx_hash, String

#wallet_idString

ID of the wallet.

Parameters:

  • value (String)

Returns:

  • (String)


15
# File 'lib/privy/models/wallets/transaction_get_params.rb', line 15

required :wallet_id, String

Instance Method Details

#to_hash{

Returns:

  • ({)


63
# File 'sig/privy/models/wallets/transaction_get_params.rbs', line 63

def to_hash: -> {