/// <summary> /// Get infomation asset issue list by name /// </summary> /// <param name="parameters"> /// Parameter Index /// [0] : Asset issue name /// </param> /// <returns></returns> public static bool AssetIssueByName(string command, string[] parameters) { string[] usage = new string[] { string.Format("{0} [command option] <asset issue name>\n", command) }; string[] command_option = new string[] { HelpCommandOption.Help }; if (parameters == null || parameters.Length != 1) { OutputHelpMessage(usage, null, command_option, null); return(true); } try { string name = parameters[0]; RpcApiResult result = RpcApi.AssetIssueByName(name, out AssetIssueContract contract); if (result.Result) { Console.WriteLine(PrintUtil.PrintAssetIssue(contract)); } OutputResultMessage(command, result.Result, result.Code, result.Message); } catch (System.Exception e) { Console.WriteLine(e.Message + "\n\n" + e.StackTrace); } return(true); }