rpc: paginate mempool /unconfirmed_txs endpoint (#7612)

This commit changes the behaviour of the /unconfirmed_txs endpoint by replacing limit with a page and perPage parameter for pagination.
The test case for unconfirmed_txs have been accommodated to properly test this change and the documentation for the API as well.
This commit is contained in:
Kene
2022-01-18 10:58:32 +01:00
committed by GitHub
parent 679b6a65b8
commit 49153b753c
10 changed files with 73 additions and 39 deletions
+11 -3
View File
@@ -1062,13 +1062,21 @@ paths:
operationId: unconfirmed_txs
parameters:
- in: query
name: limit
description: Maximum number of unconfirmed transactions to return (max 100)
name: page
description: "Page number (1-based)"
required: false
schema:
type: integer
default: 30
default: 1
example: 1
- in: query
name: per_page
description: "Number of entries per page (max: 100)"
required: false
schema:
type: integer
example: 100
default: 30
tags:
- Info
description: |