Merge pull request #8998 from Abdulkbk/trx-pagination
pagination: add pagination to wallet transactions
This commit is contained in:
14 files changed
+329
-37
No files matched your search
@@ -757,11 +757,35 @@ message GetTransactionsRequest {
|
||||
|
||||
// An optional filter to only include transactions relevant to an account.
|
||||
string account = 3;
|
||||
|
||||
/*
|
||||
The index of a transaction that will be used in a query to determine which
|
||||
transaction should be returned in the response.
|
||||
*/
|
||||
uint32 index_offset = 4;
|
||||
|
||||
/*
|
||||
The maximal number of transactions returned in the response to this query.
|
||||
This value should be set to 0 to return all transactions.
|
||||
*/
|
||||
uint32 max_transactions = 5;
|
||||
}
|
||||
|
||||
message TransactionDetails {
|
||||
// The list of transactions relevant to the wallet.
|
||||
repeated Transaction transactions = 1;
|
||||
|
||||
/*
|
||||
The index of the last item in the set of returned transactions. This can be
|
||||
used to seek further, pagination style.
|
||||
*/
|
||||
uint64 last_index = 2;
|
||||
|
||||
/*
|
||||
The index of the last item in the set of returned transactions. This can be
|
||||
used to seek backwards, pagination style.
|
||||
*/
|
||||
uint64 first_index = 3;
|
||||
}
|
||||
|
||||
message FeeLimit {
|
||||
|
||||
Reference in new issue
Block a user