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

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

            return((int)(long)tx["height"]);
        }
Beispiel #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);
     }
 }