lnrpc: modify gettransaction parameters
This commit adds index_offset and max_transactions to the list of parameters passed during gettransactions call. index_offset specify transactions to skip and max_transactions the total transactions returned
This commit is contained in:
1 parent
a4195fa2ce
commit
037db4278a
3 files changed
+3097
-3028
No files matched your search
+3053
-3028
File diff suppressed because it is too large.
Load diff
@@ -757,6 +757,18 @@ message GetTransactionsRequest {
|
|||||||
|
|
||||||
// An optional filter to only include transactions relevant to an account.
|
// An optional filter to only include transactions relevant to an account.
|
||||||
string account = 3;
|
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 {
|
message TransactionDetails {
|
||||||
|
|||||||
@@ -2591,6 +2591,22 @@
|
|||||||
"in": "query",
|
"in": "query",
|
||||||
"required": false,
|
"required": false,
|
||||||
"type": "string"
|
"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": [
|
"tags": [
|
||||||
@@ -2774,6 +2790,22 @@
|
|||||||
"in": "query",
|
"in": "query",
|
||||||
"required": false,
|
"required": false,
|
||||||
"type": "string"
|
"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": [
|
"tags": [
|
||||||
|
|||||||
Reference in new issue
Block a user