Class: Privy::Models::GasSpendRequestBody

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

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(end_timestamp:, start_timestamp:, wallet_ids:) ⇒ Object

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

Query parameters for getting gas spend for a set of wallets. The time range from start_timestamp to end_timestamp must not exceed 30 days.

Parameters:

  • end_timestamp (Float)

    Unix timestamp in milliseconds, exclusive. Must be greater than or equal to `sta

  • start_timestamp (Float)

    Unix timestamp in milliseconds, inclusive. Must be less than or equal to `end_ti

  • wallet_ids (Array<String>)

    List of wallet IDs to query gas spend for. Maximum 100.



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

Instance Attribute Details

#end_timestampFloat

Unix timestamp in milliseconds, exclusive. Must be greater than or equal to start_timestamp, and the range from start_timestamp to end_timestamp must not exceed 30 days.

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :end_timestamp, Float

#start_timestampFloat

Unix timestamp in milliseconds, inclusive. Must be less than or equal to end_timestamp, and the range from start_timestamp to end_timestamp must not exceed 30 days.

Parameters:

  • value (Float)

Returns:

  • (Float)


20
# File 'lib/privy/models/gas_spend_request_body.rb', line 20

required :start_timestamp, Float

#wallet_idsArray<String>

List of wallet IDs to query gas spend for. Maximum 100.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


26
# File 'lib/privy/models/gas_spend_request_body.rb', line 26

required :wallet_ids, Privy::Internal::Type::ArrayOf[String]

Instance Method Details

#to_hash{

Returns:

  • ({)


23
# File 'sig/privy/models/gas_spend_request_body.rbs', line 23

def to_hash: -> {