Method: Casper::RpcClient#chain_get_StateRootHash
- Defined in:
-
lib/rpc/rpc.rb,
lib/rpc/rpc_client.rb
Returns state_root_hash value.
55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/rpc/rpc.rb', line 55 def chain_get_StateRootHash(block_hash = "") begin status = Timeout::timeout(10) { client = Jimson::Client.new(@url) result = client.chain_get_state_root_hash @state_root_hash = result["state_root_hash"] } rescue 'Timeout expired to retrieve state_root_hash value!' end end |