Method: Radiator::SSC::Contracts#find_one

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

#find_one(options = {}) ⇒ Object

Example using the defaults, backed by Steem Engine:

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

Parameters:

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

    The attributes

Options Hash (options):

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

Returns:

  • the object that matches the query from the table of the specified contract

[View source]

42
43
44
# File 'lib/radiator/ssc/contracts.rb', line 42

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