Sha256: a0d66ee5e1aee0230c5dce5888f92a7fdc7bd3c86c5a5c0527ec0c71bbc23f88
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
# frozen_string_literal: true module Harmony module Api module V1 module Filters module Filter # get_filter_logs returns the logs for the filter with the given id. # If the filter could not be found an empty array of logs is returned. def get_filter_logs(filter_id) params = [Harmony::Api::Utilities.int_to_hex(filter_id)] response(post('hmy_getFilterLogs', params: params)) end def get_filter_changes(filter_id) params = [Harmony::Api::Utilities.int_to_hex(filter_id)] response(post('hmy_getFilterChanges', params: params)) end def new_filter(block_hash) response(post('hmy_newFilter', params: [block_hash])) end def new_pending_transaction_filter(topics: []) params = [{ topics: topics }] response(post('hmy_newPendingTransactionFilter', params: params)) end def new_block_filter(_block_hash) response(post('hmy_newBlockFilter')) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
harmony-api-0.1.2 | lib/harmony/api/v1/filters/filter.rb |
harmony-api-0.1.1 | lib/harmony/api/v1/filters/filter.rb |
harmony-api-0.1.0 | lib/harmony/api/v1/filters/filter.rb |