Module: Nis::Endpoint::Account::Historical

Included in:
Nis
Defined in:
lib/nis/endpoint/account/historical.rb

Instance Method Summary collapse

Instance Method Details

#account_historical_get(address:, start_height:, end_height:, increment:) ⇒ Array <Nis::Struct::AccountHistoricalDataViewModel>


9
10
11
12
13
14
15
16
17
18
# File 'lib/nis/endpoint/account/historical.rb', line 9

def (address:, start_height:, end_height:, increment:)
  request!(:get, '/account/historical/get',
    address: address,
    startHeight: start_height,
    endHeight: end_height,
    increment: increment
  ) do |res|
    res[:data].map { |ahdvm| Nis::Struct::AccountHistoricalDataViewModel(ahdvm) }
  end
end