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); }
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); }