Method: Casper::RpcClient#state_get_AuctionInfo

Defined in:
lib/rpc/rpc.rb,
lib/rpc/rpc_client.rb

#state_get_AuctionInfoHash

Returns current auction system contract information.

Returns:

  • (Hash)

    auction_state



213
214
215
216
217
218
219
220
221
222
223
224
# File 'lib/rpc/rpc.rb', line 213

def state_get_AuctionInfo
  begin 
    state = Timeout::timeout(50) {
    client = Jimson::Client.new(@url)
    response = client.state_get_auction_info
    @auction_state = response['auction_state']
    @auction_state
    }
  rescue
    'Timeout expired to retrieve auction_state information!'
  end
end