module Nis::Endpoint::Account::Historical

Public Instance Methods

account_historical_get(address:, start_height:, end_height:, increment:) click to toggle source

@param [String] address @param [Integer] start_height @param [Integer] end_height @param [Integer] increment @return [Array <Nis::Struct::AccountHistoricalDataViewModel>] @see nemproject.github.io/#retrieving-historical-account-data

# File lib/nis/endpoint/account/historical.rb, line 9
def account_historical_get(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