示例#1
0
文件: Node.cs 项目: Axaic/WavesCS
        public Transaction GetTransactionById(string transactionId)
        {
            var tx = Http.GetJson($"{_host}/transactions/info/{transactionId}")
                     .ParseJsonObject();

            return(Transaction.FromJson(ChainId, tx));
        }
示例#2
0
文件: Node.cs 项目: bluetsys/WavesCS
        public int GetTransactionHeight(string transactionId)
        {
            var tx = Http.GetJson($"{_host}/transactions/info/{transactionId}")
                     .ParseJsonObject();

            return((int)(long)tx["height"]);
        }
示例#3
0
文件: Node.cs 项目: Axaic/WavesCS
 public Transaction GetTransactionByIdOrNull(string transactionId)
 {
     try
     {
         var tx = Http.GetJson($"{_host}/transactions/info/{transactionId}")
                  .ParseJsonObject();
         return(Transaction.FromJson(ChainId, tx));
     }
     catch (Exception e) {
         return(null);
     }
 }