/// <summary> /// Get information asset issue list /// </summary> /// <param name="parameters"> /// Parameter Index /// </param> /// <returns></returns> public static bool ListAssetIssue(string command, string[] parameters) { string[] usage = new string[] { string.Format("{0} [command option] \n", command) }; string[] command_option = new string[] { HelpCommandOption.Help }; if (parameters != null) { OutputHelpMessage(usage, null, command_option, null); return(true); } try { RpcApiResult result = RpcApi.ListAssetIssue(out AssetIssueList contracts); if (result.Result) { Console.WriteLine(PrintUtil.PrintAssetIssueList(contracts)); } OutputResultMessage(command, result.Result, result.Code, result.Message); } catch (System.Exception e) { Console.WriteLine(e.Message + "\n\n" + e.StackTrace); } return(true); }
/// <summary> /// Get infomation asset issue by account /// </summary> /// <param name="parameters"> /// Parameter Index /// [0] : asset issue address /// </param> /// <returns></returns> public static bool AssetIssueByAccount(string command, string[] parameters) { string[] usage = new string[] { string.Format("{0} [command option] <asset issue address>\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 address = parameters[0]; RpcApiResult result = RpcApi.AssetIssueByAccount(address, out AssetIssueList asset_issues); if (result.Result) { Console.WriteLine(PrintUtil.PrintAssetIssueList(asset_issues)); } OutputResultMessage(command, result.Result, result.Code, result.Message); } catch (System.Exception e) { Console.WriteLine(e.Message + "\n\n" + e.StackTrace); } return(true); }