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
@@ -2591,6 +2591,22 @@
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "index_offset",
|
||||
"description": "The index of a transaction that will be used in a query to determine which\ntransaction should be returned in the response.",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
{
|
||||
"name": "max_transactions",
|
||||
"description": "The maximal number of transactions returned in the response to this query.\nThis value should be set to 0 to return all transactions.",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
@@ -2774,6 +2790,22 @@
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "index_offset",
|
||||
"description": "The index of a transaction that will be used in a query to determine which\ntransaction should be returned in the response.",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
{
|
||||
"name": "max_transactions",
|
||||
"description": "The maximal number of transactions returned in the response to this query.\nThis value should be set to 0 to return all transactions.",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
@@ -7492,6 +7524,16 @@
|
||||
"$ref": "#/definitions/lnrpcTransaction"
|
||||
},
|
||||
"description": "The list of transactions relevant to the wallet."
|
||||
},
|
||||
"last_index": {
|
||||
"type": "string",
|
||||
"format": "uint64",
|
||||
"description": "The index of the last item in the set of returned transactions. This can be\nused to seek further, pagination style."
|
||||
},
|
||||
"first_index": {
|
||||
"type": "string",
|
||||
"format": "uint64",
|
||||
"description": "The index of the last item in the set of returned transactions. This can be\nused to seek backwards, pagination style."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user