Exemplo n.º 1
0
        public async Task <KristTransaction[]> GetRecentTransactions(int limit = 50, int offset = 0)
        {
            var result = await KristUtils.GET <KTransactionsResult>("addresses/" + Address + "/transactions?limit=" + limit.ToString() + "&offset=" + offset.ToString());

            var transactions = new KristTransaction[result.transactions.Length];

            for (int i = 0; i < result.transactions.Length; i++)
            {
                transactions[i] = new KristTransaction(result.transactions[i]);
            }
            return(transactions);
        }
Exemplo n.º 2
0
        public static async Task <KristTransaction[]> GetLatestTransactions(int limit = 50, int offset = 0, bool excludemined = false)
        {
            var result = await KristUtils.GET <KTransactionsResult>("transactions/latest?limit=" + limit.ToString() + "&offset=" + offset.ToString() + (excludemined ? "&excludeMined" : ""));

            var transactions = new KristTransaction[result.transactions.Length];

            for (int i = 0; i < transactions.Length; i++)
            {
                transactions[i] = new KristTransaction(result.transactions[i]);
            }
            return(transactions);
        }