Merge pull request #8998 from Abdulkbk/trx-pagination

pagination: add pagination to wallet transactions
This commit is contained in:
Oliver Gugger authored and GitHub committed 2024-11-22 09:30:11 +01:00
commit 94f7ed46de
14 files changed
+329 -37

No files matched your search

+42
View File
@@ -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."
}
}
},