177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
# File 'lib/rpc/rpc.rb', line 177
def state_get_dictionary_item(state_root_hash, item_key, uref)
begin
state = Timeout::timeout(5) {
client = Jimson::Client.new(@url)
response = client.state_get_dictionary_item({
"state_root_hash" => state_root_hash,
"dictionary_identifier" => {'URef' =>
{'seed_uref' => uref, 'dictionary_item_key' => item_key} }})
@stored_value = response["stored_value"]
@stored_value
}
rescue
'Timeout expired to retrieve stored_value'
end
end
|