Method: Radiator::SSC::Contracts#find

Defined in:
lib/radiator/ssc/contracts.rb

#find(options = {}) ⇒ Object

Example using the defaults, backed by Steem Engine:

rpc = Radiator::SSC::Contracts.new
rpc.find(
  contract: "tokens",
  table: "balances",
  query: {
    symbol: "STINGY"
  }
)

Parameters:

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

    The attributes

Options Hash (options):

  • :contract (String)
  • :table (String)
  • :query (String)
  • :limit (Integer)

    default: 1000

  • :offset (Integer)

    default: 0

  • :descending (Boolean)
  • indexes (::Hash)

    default: empty, an index is an object { index: string, descending: boolean }

Returns:

  • array of objects that match the query from the table of the specified contract


66
67
68
# File 'lib/radiator/ssc/contracts.rb', line 66

def find(options = {})
  request(method: 'find', params: options)
end