Esempio n. 1
0
        public Transaction GetTransactionById(string transactionId)
        {
            var tx = Http.GetJson($"{_host}/transactions/info/{transactionId}")
                     .ParseJsonObject();

            return(Transaction.FromJson(ChainId, tx));
        }
Esempio n. 2
0
        public int GetTransactionHeight(string transactionId)
        {
            var tx = Http.GetJson($"{_host}/transactions/info/{transactionId}")
                     .ParseJsonObject();

            return((int)(long)tx["height"]);
        }
Esempio n. 3
0
 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);
     }
 }