message: Add `get_chain_latest_block` method
diff: @@ -53,7 +53,7 @@ function get_chain_name()
  }
  #######################################
  -# Returns latest block finalized at a node.
  +# Returns hash of latest block finalized at a node.
  #######################################
  function get_chain_latest_block_hash()
  {
  @@ -63,6 +63,17 @@ function get_chain_latest_block_hash()
  | sed -e 's/^"//' -e 's/"$//'
  }
  +#######################################
  +# Returns latest block finalized at a node.
  +#######################################
  +function get_chain_latest_block()
  +{
  + $(get_path_to_client) get-block \
  + --node-address "$(get_node_address_rpc)" \
  + | jq '.result.block' \
  + | sed -e 's/^"//' -e 's/"$//'
  +}
  +
  #######################################
  # Returns a timestamp for use in chainspec.toml.
  # Arguments:
  