[−][src]Function casper_client::get_state_root_hash
pub fn get_state_root_hash(
maybe_rpc_id: &str,
node_address: &str,
verbose: bool,
maybe_block_id: &str
) -> Result<JsonRpc, Error>
Retrieves a state root hash at a given Block
.
maybe_rpc_id
is the JSON-RPC identifier, applied to the request and returned in the response. If it can be parsed as ani64
it will be used as a JSON integer. If empty, a randomi64
will be assigned. Otherwise the provided string will be used verbatim.node_address
is the hostname or IP and port of the node on which the HTTP service is running, e.g."http://127.0.0.1:7777"
.- When
verbose
istrue
, the JSON-RPC request will be printed tostdout
. maybe_block_id
must be a hex-encoded, 32-byte hash digest or au64
representing theBlock
height or empty. If empty, the latestBlock
will be used.