Class: Chain::Balance::ClientModule

Inherits:
ClientModule show all
Defined in:
lib/chain/balance.rb

Instance Attribute Summary

Attributes inherited from ClientModule

#client

Instance Method Summary collapse

Methods inherited from ClientModule

#initialize

Constructor Details

This class inherits a constructor from Chain::ClientModule

Instance Method Details

#query(opts = {}) ⇒ Query

Parameters:

  • opts (Hash) (defaults to: {})

    Filtering information

Options Hash (opts):

  • filter (String)
  • filter_params (Array<String|Integer>)

    Parameter values for filter string (if needed).

  • sum_by (Array<String>)

    List of unspent output attributes to sum by.

  • timestamp (Integer)

    A millisecond Unix timestamp. By using this parameter, you can perform queries that reflect the state of the blockchain at different points in time.

Returns:



25
26
27
# File 'lib/chain/balance.rb', line 25

def query(opts = {})
  Query.new(client, opts)
end